qiskit-quimb
Simulate Qiskit circuits using quimb.
Documentation
Documentation is located at the project website.
Installation
pip install qiskit-quimb
Usage
The qiskit_quimb module exposes three functions:
quimb_circuit: Converts a Qiskit circuit to a quimb circuit.quimb_gates: Converts a Qiskit circuit to a list of quimb gates, which is a bit more flexible.quimb_gate: Converts a Qiskit gate to a quimb gate.
For details, refer to the API documentation.
Code example
import quimb.tensor
from qiskit.circuit import QuantumCircuit, QuantumRegister
from qiskit_quimb import quimb_circuit
# Build a Qiskit circuit
qubits = QuantumRegister(2)
circuit = QuantumCircuit(qubits)
a, b = qubits
circuit.h(a)
circuit.cx(a, b)
# Convert it to a quimb circuit
quimb_circ = quimb_circuit(circuit)
# Sample 10 bitstrings
samples = list(quimb_circ.sample(10, seed=1234))
print(samples)
# You can specify the quimb Circuit subclass and keyword arguments for the constructor
quimb_circ = quimb_circuit(
circuit, quimb_circuit_class=quimb.tensor.CircuitMPS, max_bond=20
)
samples = list(quimb_circ.sample(10, seed=1234))
print(samples)
['00', '00', '11', '00', '11', '00', '11', '00', '11', '11']
['11', '11', '00', '00', '11', '00', '11', '11', '11', '00']
Release files for qiskit-quimb 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qiskit_quimb-0.0.10.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qiskit_quimb-0.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.2 kB
Release files / qiskit_quimb-0.0.10.tar.gz
| Download URL | qiskit_quimb-0.0.10.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef28a0f85ddf8ebde395c2605c51aa980ba5cbf9a2eae931f898317dbe112f44
|
|
BLAKE2b-256 checksum How to use checksums |
6a7f84154bcccc577f38422c09505c48d18177e37e262f5f62d7d536cf201ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 31, 2026.
Transparency logRelease files / qiskit_quimb-0.0.10-py3-none-any.whl
| Download URL | qiskit_quimb-0.0.10-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a185d1426aac2e2cb07cc40e1ac3011531b56cdb4d67893244406ee681ce497a
|
|
BLAKE2b-256 checksum How to use checksums |
a5180d7644815605427689bfc0ee21e0bb4ce483f7b146dfca8bd4147f7b5a40
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 31, 2026.
Transparency log