A modular QLDPC code circuit simulator
Project description
QUITS: A Modular QLDPC Code circUIT Simulator
QUITS is a modular and flexible circuit-level simulator for quantum low-density parity-check (QLDPC) codes. It is designed so users can choose and mix different options for each module independently: code construction, circuit strategy, decoder, and noise model.
Example QLDPC code (Balanced Product Cyclic code) Tanner graph with cardinal circuit scheduling.
Modular Architecture
QUITS is organized into clear modules, enabling flexible choice for each component:
quits.qldpc_code: QLDPC code families, code objects, and bring-your-own parity-check-matrix workflows.quits.qldpc_code.circuit_construction: circuit-construction strategies and options.quits.decoder: sliding-window phenomenological/circuit-level decoders, with flexibility in inner decoders (e.g. BP-OSD, BP-LSD, bring-your-own decoder).quits.noise.ErrorModel: structured noise-model configuration (e.g. idling/single-qubit-gate/two-qubit-gate/SPAM error rates) for circuit generation.
For HGP codes, QUITS also includes a classical LDPC generator in quits.ldpc_util, including generate_ldpc and generate_ldpc_good_girth.
Supported code families include:
- Hypergraph Product (HGP) codes
- Quasi-cyclic Lifted Product (QLP) codes
- Balanced Product Cyclic (BPC) codes
- Lift-Connected Surface (LCS) codes
- Bivariate Bicycle (BB) codes
- Any code, if you bring the parity check matrices
For background on QUITS, see arXiv:2504.02673.
Circuit Construction Strategies
| Code family | zxcoloration |
cardinal |
custom |
|---|---|---|---|
| HGP | yes | yes | no |
| QLP | yes | yes | no |
| BPC | yes | yes | no |
| LCS | yes | yes | no |
| BB | yes | no | yes |
| Any | yes | no | no |
zxcolorationis available for all QLDPC codes.cardinalis available for HGP, QLP, BPC, and LCS.customis available for BB code.
Recommended Companion Libraries
QUITS is best used together with the following libraries:
Installation
Conda-first workflow:
conda create -n quits python=3.12 -y
conda activate quits
pip install quits
For source/development installs from this repository:
pip install -e .
Quick Start Docs
Acknowledgments
This project is based on QUITS: A modular Qldpc code circUIT Simulator, originally developed by Mingyu Kang, Yingjia Lin, Hanwen Yao, Mert Gökduman, Arianna Meinking, and Kenneth R. Brown at the Duke Quantum Center, supported by NSF, ARO, and LPS.
Since the release of QUITS, we acknowledge the feedback and suggestions from Ryan Tiew, Josias Old, and qodesign that helped improve the package. If you're working on QLDPC codes, decoders, or noise modeling, it'd be great if you could try QUITS, file issues, or contribute features. Let's build better tools for scalable, fault-tolerant quantum computing together.
License
This project is licensed under the MIT License.
How to Cite Our Work
If you use our work in your research, please cite it using the following reference:
@article{Kang2025quitsmodularqldpc,
doi = {10.22331/q-2025-12-05-1931},
url = {https://doi.org/10.22331/q-2025-12-05-1931},
title = {{QUITS}: {A} modular {Q}ldpc code circ{UIT} {S}imulator},
author = {Kang, Mingyu and Lin, Yingjia and Yao, Hanwen and G{\"{o}}kduman, Mert and Meinking, Arianna and Brown, Kenneth R.},
journal = {{Quantum}},
issn = {2521-327X},
publisher = {{Verein zur F{\"{o}}rderung des Open Access Publizierens in den Quantenwissenschaften}},
volume = {9},
pages = {1931},
month = dec,
year = {2025}
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quits-1.0.0.tar.gz.
File metadata
- Download URL: quits-1.0.0.tar.gz
- Upload date:
- Size: 46.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390be64f2b9d6779b3c1262a1068090ba8bb9ec40aaa54a598dfb27450f9bc82
|
|
| MD5 |
3a4e1a2d1e7dc50434f53e11ddcf5382
|
|
| BLAKE2b-256 |
b3ded091df1c3739ca576d2a1990c0983ec1e5e1ac4e817f0dd5610c1ad9e883
|
Provenance
The following attestation bundles were made for quits-1.0.0.tar.gz:
Publisher:
release.yml on mkangquantum/quits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quits-1.0.0.tar.gz -
Subject digest:
390be64f2b9d6779b3c1262a1068090ba8bb9ec40aaa54a598dfb27450f9bc82 - Sigstore transparency entry: 947207629
- Sigstore integration time:
-
Permalink:
mkangquantum/quits@1ccfccf58340ec5e1dce222c2cbee9effae9de6f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mkangquantum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ccfccf58340ec5e1dce222c2cbee9effae9de6f -
Trigger Event:
push
-
Statement type:
File details
Details for the file quits-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quits-1.0.0-py3-none-any.whl
- Upload date:
- Size: 54.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e84c178bae623d89a608af61920e5092a0037c1af8f90f32d0ce7469d6a705e
|
|
| MD5 |
25481feb0d3c1ed04402bbba90026fc0
|
|
| BLAKE2b-256 |
9045aa4c37ab9db93bc969486c4ca98156c32857d5566b867343b06046297c4c
|
Provenance
The following attestation bundles were made for quits-1.0.0-py3-none-any.whl:
Publisher:
release.yml on mkangquantum/quits
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quits-1.0.0-py3-none-any.whl -
Subject digest:
7e84c178bae623d89a608af61920e5092a0037c1af8f90f32d0ce7469d6a705e - Sigstore transparency entry: 947207630
- Sigstore integration time:
-
Permalink:
mkangquantum/quits@1ccfccf58340ec5e1dce222c2cbee9effae9de6f -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/mkangquantum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@1ccfccf58340ec5e1dce222c2cbee9effae9de6f -
Trigger Event:
push
-
Statement type: