Skip to main content

A modular QLDPC code circuit simulator

Project description

QUITS: A Modular QLDPC Code circUIT Simulator

CI PyPI Python License

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, noise model, and layout helper.

Example QLDPC code (Balanced Product Cyclic code) Tanner graph with cardinal circuit scheduling and transversal layout. BPC Tanner graph with cardinal circuit scheduling and transversal layout

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.
  • quits.layout: layout and visualization helpers, including transversal and toric graph embeddings.

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:

For background on QUITS, see arXiv:2504.02673.

Circuit Construction Strategies

Code family zxcoloration cardinal
cardinalNSmerge
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

Recommended Companion Libraries

QUITS is best used together with the following libraries:

  • Stim (fast stabilizer circuit simulator)
  • LDPC (BP-OSD, BP-LSD decoders for QLDPC codes)

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, qodesign, and Daniel Tan 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

quits-1.1.0.tar.gz (54.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quits-1.1.0-py3-none-any.whl (65.1 kB view details)

Uploaded Python 3

File details

Details for the file quits-1.1.0.tar.gz.

File metadata

  • Download URL: quits-1.1.0.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quits-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d3e4fa4bd9f5964227cc6be091a7014e863e3b6fc92a07272f36f008b9e42e6c
MD5 ece5e0f2ea6ff242b41c8e0a5c1a069e
BLAKE2b-256 aa4955e6eba25254b0c9347e35945354532f84efdede93e6c0ad4fee62ccb45f

See more details on using hashes here.

Provenance

The following attestation bundles were made for quits-1.1.0.tar.gz:

Publisher: release.yml on mkangquantum/quits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file quits-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: quits-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 65.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for quits-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e26194e90cfb06b177ced15eeb76e75cbb1806d1462d0e47a5118b270683a77
MD5 35b0674f1a0adf9eb1e2b8f624533b0e
BLAKE2b-256 6f5fa2d788675bed352e0abc8f5ff7e056e3497b7108ff75aa9181d16bf0aa31

See more details on using hashes here.

Provenance

The following attestation bundles were made for quits-1.1.0-py3-none-any.whl:

Publisher: release.yml on mkangquantum/quits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page