QDD
Documentation is available on GitHub Pages.
QDD is a decision diagram based quantum computing simulator for Qiskit. It can reduce memory usage compared with typical state-vector simulators when the decision diagram representation remains compact.
Installation
Install QDD from PyPI:
pip install qdd
Supported environment:
- Linux x86_64 and aarch64
- Python 3.9 through 3.15
Quick Start
QDD works as a Qiskit backend.
from qiskit import QuantumCircuit
from qdd import QddProvider
backend = QddProvider().get_backend("qasm_simulator")
circuit = QuantumCircuit(3)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
job = backend.run(circuit, shots=1024, seed_simulator=1234)
print(job.result().get_counts())
For statevector simulation:
from qiskit import QuantumCircuit
from qdd import QddProvider
backend = QddProvider().get_backend("statevector_simulator")
circuit = QuantumCircuit(2)
circuit.h(0)
circuit.cx(0, 1)
statevector = backend.run(circuit).result().get_statevector()
print(statevector)
MPI Usage
MPI support is optional. Use the MPI-enabled qdd-mpi distribution only when
you want to run QDD across MPI ranks.
The qdd and qdd-mpi distributions provide the same import qdd Python
package namespace. Do not install both in the same environment.
Install the MPI-enabled package from PyPI:
pip install mpi4py
CC=mpicc CXX=mpicxx pip install qdd-mpi --no-binary qdd-mpi
Minimal MPI run with Qiskit:
# mpi_bell.py
from mpi4py import MPI
from qiskit import QuantumCircuit
from qdd import QddProvider
backend = QddProvider().get_backend("qasm_simulator")
backend.set_options(use_mpi=True)
circuit = QuantumCircuit(3)
circuit.h(0)
circuit.cx(0, 1)
circuit.cx(1, 2)
circuit.measure_all()
result = backend.run(circuit, shots=1024).result()
if MPI.COMM_WORLD.Get_rank() == 0:
print(result.get_counts())
Run the script under MPI:
mpirun -n 2 python mpi_bell.py
You can also pass use_mpi=True per run, or through QDD primitive backend
options such as Sampler(backend_options={"use_mpi": True}) and
Estimator(backend_options={"use_mpi": True}).
Documentation
Full documentation, including source builds, testing, MPI usage, and Python/C++ API references, is published with GitHub Pages:
https://fujitsu-utokyo-qdd.github.io/QDD/
The documentation source is in docs/source.
Citation
If you use QDD in academic work, please cite:
- "Accelerating Decision Diagram-based Multi-node Quantum Simulation with Ring Communication and Automatic SWAP Insertion," IEEE QSW 2024: 10.1109/QSW62656.2024.00025
Additional references:
- "Variable ordering and multi-node ring communication", IEEE TQE: 10.1109/TQE.2026.3654543
- Decision-diagram and state-vector simulator characteristics, IEEE QCE 2024: 10.1109/QCE60285.2024.00095
License
BSD 3-Clause Clear License
Limitation of Liability
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
Metadata
Release files for qdd-mpi 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qdd_mpi-0.4.2.tar.gz | 111.8 kB | With provenance | Details for qdd_mpi-0.4.2.tar.gz |
Release files / qdd_mpi-0.4.2.tar.gz
| Download URL | qdd_mpi-0.4.2.tar.gz |
|---|---|
| Size | 111.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e5390cc000e91261aa9d8f487511337f265a72f137817067c390309943b6446
|
|
BLAKE2b-256 checksum How to use checksums |
66cd295c03df0ccdad92f4418e9abff294ec7cbd432cfc705a816ca8ab448170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Oct 29, 2026.
Transparency logSecurity for qdd-mpi 0.4.2
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.
Full provenance
1 file in this release has been uploaded with provenance metadata.
Attestation for qdd_mpi-0.4.2.tar.gz
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 Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.