Package: quri-parts
QURI PartsQURI Parts is an open source library suite for creating and executing quantum algorithms on various quantum computers and simulators. QURI Parts focuses on the followings:Modularity and extensibility: It provides small parts with which you can assemble your own algorithms. You can also use ready-made algorithms, customizing their details by replacing sub components easily.Platform independence: Once you assemble an algorithm with QURI Parts, you can execute it on various quantum computers or simulators without modifying the main algorithm code. Typically you only need to replace a few lines to switch to a different device or simulator.Performance: When dealing with a simulator, it is often the case that classical computation before and after quantum circuit simulation (such as data preparation and post processing) takes considerable time, spoiling performance of the simulator. We put an emphasis on computational performance and try to get the most out of simulators.Covered areas and componentsCurrent QURI Parts covers the following areas, provided as individual components.
Please note that more components will be added in future.
You are also encouraged to propose or author new components as necessary.Core componentsquri-parts-circuit: Quantum circuitGate, circuit, noise etc.quri-parts-core: General componentsOperator, state, estimator, sampler etc.Platform (device/simulator) supportQuantum circuit simulatorsquri-parts-qulacs:Qulacsquri-parts-stim:Stimquri-parts-itensor:ITensorquri-parts-tket:TKetQuantum platforms/SDKsquri-parts-braket:Amazon Braket SDKquri-parts-cirq:Cirq(Only circuit and operator conversion is supported yet)quri-parts-qiskit:Qiskitquri-parts-quantinuum:Quantinuumquri-parts-ionq:IONQIntermediate representation supportquri-parts-openqasm:OpenQASM 3.0quri-parts-algo: AlgorithmsAnsatz, optimizer, error mitigation etc.Chemistryquri-parts-chem: General conceptsFermion-qubit mapping, electron integrals, ansatz etc.quri-parts-pyscf:PySCFLibrary supportquri-parts-openfermion:OpenFermionInstallationQURI Parts requires Python 3.9.8 or later.Usepipto install QURI Parts.
Default installation only contains components not depending specific platforms (devices/simulators) or external libraries.
You need to specifyextraswith square brackets ([]) to use those platforms and external libraries with QURI Parts:# Default installation, no extras
pip install quri-parts

# Use Qulacs, a quantum circuit simulator
pip install "quri-parts[qulacs]"

# Use Amazon Braket SDK
pip install "quri-parts[braket]"

# Use Qulacs and OpenFermion, a quantum chemistry library for quantum computers
pip install "quri-parts[qulacs,openfermion]"Currently available extras are as follows:qulacsbraketqiskitcirqopenfermionstimopenqasmitensorYou can also install individual components (quri-parts-*) directly.
In fact,quri-partsis a meta package, a convenience method to install those individual components.Installation from local source treeIf you check out the QURI Parts repository and want to install from that local source tree, you can userequirements-local.txt.
Inrequirements-local.txt, optional components are commented out, so please uncomment them as necessary.pip install -r requirements-local.txtDocumentation and tutorialsDocumentation of QURI Parts is available athttps://quri-parts.qunasys.com.Tutorialswould be a good starting point.Release notesSeeReleases pageon GitHub.Contribution guidelinesIf you are interested in contributing to QURI Parts, please take a look at ourcontribution guidelines.AuthorsQURI Parts developed and maintained byQunaSys Inc.. All contributors can be viewed onGitHub.LicenseQURI Parts is licensed underApache License 2.0.