Skip to main content

QUITS: A Modular QLDPC Code circUIT Simulator

CI PyPI Python License Downloads

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
Mitten yes no yes
Any yes no no
  • zxcoloration is available for all QLDPC codes.
  • cardinal, cardinalNSmerge are available for HGP, QLP, BPC, and LCS.
  • custom is available for BB code.
  • For mitten codes, custom (the default) is the mitten-specific depth-12 interleaved mixed X/Z schedule, and the additional hook_error_free strategy is the depth-24 group-element-layer schedule of arXiv:2607.28795; zxcoloration gives depth 18.

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}
}

Metadata

Release files for quits 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quits 1.2.0
File Size Uploaded
quits-1.2.0.tar.gz 83.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quits 1.2.0
File Interpreter ABI Platform
quits-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 167.2 kB

Release files / quits-1.2.0.tar.gz

Download URL quits-1.2.0.tar.gz
Size 83.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f053c87672a465f1ffae4cd33c83b3b9b33425c7416fc37a7e0919abfee25218
BLAKE2b-256 checksum
How to use checksums
4d4ab897547638186d1e4d202a9c40d93788152ac1ff310812764253c3ff04cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 4, 2026.

Transparency log

Release files / quits-1.2.0-py3-none-any.whl

Download URL quits-1.2.0-py3-none-any.whl
Size 84.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc35010c59a3af60d58167fc80e86eb70d2619a9be707114489e1450797e1c3b
BLAKE2b-256 checksum
How to use checksums
f20db4b3cf89211e781eb58ebadebdb639edd57482e814b3ca37a9800fd2fca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page