Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Clifft

Unitary Foundation Docs arXiv License Discord Chat

PyPI version Downloads CI codecov Contributor Covenant

Clifft is a fast exact simulator for near-Clifford quantum circuits.

Built and maintained by the Unitary Foundation.

Clifft accepts Stim-format circuits, extends them with non-Clifford gates, and compiles them into symbolic-coordinate sampling plans. It is designed for circuits whose dominant structure is Clifford, but whose behavior depends on localized non-Clifford operations.

The dense active state has 2^k amplitudes, where k is its active width. The main simulation cost therefore scales with 2^k, rather than directly with the total number of physical qubits n. Non-Clifford operations can increase k, while measurements can reduce it.

Clifft's original design established this factored active-state architecture, described in the Clifft paper. SymFT, by Wang Fang, Huazhe Lou, and Riling Li, is the second-generation successor to SOFT. Its planner builds on SOFT's generalized-stabilizer simulation and Clifft's dense active-state representation. SymFT adds symbolic Clifford-Pauli-frame factorization, adaptive stabilizer-coordinate planning, and direct multi-coordinate kernels. Clifft's current sampler adopts these SymFT developments alongside Clifft-specific compiler, continuation, and API machinery. See the theoretical overview for the fuller lineage and implementation boundaries. The symbolic sampling update explains the migration from the original SVM and reports matched release-target benchmarks.

Why Clifft?

  • Stim-compatible format and API: parse Stim-format circuits with noise, detectors, observables, and repeat blocks, plus non-Clifford extensions.
  • Exact near-Clifford simulation: simulate localized non-Clifford effects without approximating the quantum state.
  • Optimizing compiler pipeline: resolve Clifford coordinates and symbolic dependencies once, then sample many shots from a prepared plan.
  • Active-width scaling: for low-magic circuits, runtime and memory scale with the localized active state rather than the full Hilbert space.

For QEC workflows, Clifft also supports detector-based post-selection, survivor sampling, and stratified importance sampling for rare-event estimation.

Experimental AMD HIP and NVIDIA CUDA backends are available through an explicit source build and separate APIs. They are not part of the published wheels or selected automatically.

Performance

Clifft reaches millions of attempted shots per second on several complete near-Clifford circuits using one CPU core. Its compiler keeps the dense quantum state small so that exact near-Clifford simulation can approach the throughput usually associated with specialized Clifford tools.

Clifft v0.13, SymFT, xtim, Stim, and Tsim attempted shots per second across fourteen CPU workloads, grouped on independent logarithmic scales

See the Performance guide for comparisons with other simulators, release history, dense Quantum Volume results, and measurement details.

Installation

pip install clifft
Platform / CPU family PyPI wheel
Linux x86_64 with x86-64-v2 support Supported
Linux aarch64 Supported
macOS 15+ arm64 Supported
Windows amd64 Supported

All other platforms and CPU families should build from source. See the installation docs.

Quick Start

import clifft

program = clifft.compile("""
    H 0
    CNOT 0 1
    T 2
    M 0 1 2
""")

result = clifft.sample(program, shots=1000, seed=42)
print(result.measurements[:5])

Continue with the Quick Start, or use Choose a Workflow to select an API by the result you need. You can also try Clifft in the web-based interactive playground.

Circuit Inputs

Starting point Path
Stim circuits with Clifft extensions Use the native clifft API for the broadest feature support.
OpenQASM 2 text Pass input_format="qasm2" for supported unitary circuits.
Qiskit QuantumCircuit Use clifft-qiskit, a Qiskit BackendV2 provider.
Cirq cirq.Circuit Use clifft-cirq, a converter and Cirq-style sampler.

See Circuit Inputs for installation commands, minimal examples, and current limitations.

Acknowledgments

Clifft has benefited from the following research and software:

  • Stim for its circuit format, sampling interfaces, original tableau foundation, and independent validation.
  • SOFT and SymFT for generalized-stabilizer simulation, cultivation circuits, symbolic sampling, adaptive coordinate planning, and inspiration for packed execution and entrance filtering.
  • Tsim for Stim-compatible universal simulation design, closed-output reconstruction and scheduling, trajectory sharing, and open code and data enabling comparisons.
  • SqaleSim for motivating the leakage/loss instrument design and providing a five-level neutral-atom model and examples.
  • deltakit-stim for inspiring configurable leakage partner effects and status-conditioned fixed execution.
  • Microsoft QDK for development comparisons informing online Clifford-frame execution for leakage and loss.
  • TOHPE for T-count reduction in the phase-polynomial optimizer.
  • Merlin for code-switching benchmark circuits and the affine-support, cubic-phase viewpoint that motivated extending static optimization to measured preparations and complete phase regions.
  • Pauli Frame Sparse Representation for the importance-sampling approach used in cultivation analysis.
  • Magic-state cultivation for protocols, circuits, data, and analysis tools used in examples and benchmarks.
  • xoshiro256++ for the sampling random-number generator.

See Acknowledgments and references for the specific contributions and associated papers, software, and artifacts.

Citation

If you use Clifft in your work, please cite the arXiv preprint below.

@misc{chase2026clifftfastexactsimulation,
      title={Clifft: Fast Exact Simulation of Near-Clifford Quantum Circuits},
      author={Bradley A. Chase and Farrokh Labib},
      year={2026},
      eprint={2604.27058},
      archivePrefix={arXiv},
      primaryClass={quant-ph},
      url={https://arxiv.org/abs/2604.27058},
}

Development

See the building from source guide for build instructions.

Follow current priorities and release plans in the public Clifft development project. Its README describes the planning and triage workflow.

AI Acknowledgement

We used generative AI tools during parts of the research, software-development, and writing workflow for this project. These tools assisted with code generation and review, implementation analysis, documentation editing, and checks of selected derivations or arguments. All substantive design, validation, and release decisions were made by the human contributors.

Funding

This work was supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research, Accelerated Research in Quantum Computing under Award Number DE-SC0025336.

This material is also based upon work supported by the U.S. Department of Energy, Office of Science, National Quantum Information Science Research Centers, Quantum Science Center.

License

Apache-2.0

Metadata

Release files for clifft 0.14.0rc3

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

Source distribution (sdist)

Source distribution for clifft 0.14.0rc3
File Size Uploaded Provenance Actions
clifft-0.14.0rc3.tar.gz 4.6 MB With provenance Details for clifft-0.14.0rc3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for clifft 0.14.0rc3
File Actions
clifft-0.14.0rc3-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for clifft-0.14.0rc3-cp312-abi3-win_amd64.whl
clifft-0.14.0rc3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for clifft-0.14.0rc3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
clifft-0.14.0rc3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.26+ ARM64, Linux glibc 2.28+ ARM64 Details for clifft-0.14.0rc3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
clifft-0.14.0rc3-cp312-abi3-macosx_15_0_arm64.whl CPython 3.12 abi3 macOS 15.0+ ARM64 Details for clifft-0.14.0rc3-cp312-abi3-macosx_15_0_arm64.whl

Total release size: 10.2 MB

Release files / clifft-0.14.0rc3.tar.gz

Download URL clifft-0.14.0rc3.tar.gz
Size 4.6 MB
Tags Source
SHA-256 checksum
How to use checksums
254baf0f8f8eb1894ee3e5b7b7b3b33a813c68e3a451bb05e4da740655c3eadb
BLAKE2b-256 checksum
How to use checksums
3df8d8562673b7bcbd4dd23e143f134a850a61c67b86fa53b452b17c30e1f8e5
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 Nov 24, 2026.

Transparency log

Release files / clifft-0.14.0rc3-cp312-abi3-win_amd64.whl

Download URL clifft-0.14.0rc3-cp312-abi3-win_amd64.whl
Size 1.3 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
b2f56f307d9dffc2ed320859f4aa98e414bb63773a99a0743bc54392a1f6091d
BLAKE2b-256 checksum
How to use checksums
a2eca9baec0630db5b78206975065a082c787a8209c1e142bf23b830d3535cfe
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 Nov 24, 2026.

Transparency log

Release files / clifft-0.14.0rc3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL clifft-0.14.0rc3-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 1.7 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
3e8ecc0bdf3fe60f838e25f003b290d72e2c88151746bd835f9fc3e733ebc19c
BLAKE2b-256 checksum
How to use checksums
060b140e0c35a3e1a2c305dc7b914e977b7335f70c8b2d631f7a0da7eed6bff1
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 Nov 24, 2026.

Transparency log

Release files / clifft-0.14.0rc3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL clifft-0.14.0rc3-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 1.5 MB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
301dbf28649563c009a30894c410e453f93ba71022fa1e975b4b2aaa7cf8f4e4
BLAKE2b-256 checksum
How to use checksums
3cf79e86cdc9e009895ab503e502883d6666cbf90dbc6daccf0302da4ec320bb
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 Nov 24, 2026.

Transparency log

Release files / clifft-0.14.0rc3-cp312-abi3-macosx_15_0_arm64.whl

Download URL clifft-0.14.0rc3-cp312-abi3-macosx_15_0_arm64.whl
Size 1.1 MB
Tags CPython 3.12 abi3 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
cd26f9a67767c2b681529d0beee6281e18e0e3dfdf8ea43175a6a362859add02
BLAKE2b-256 checksum
How to use checksums
6dfe44ab80e40f60f5f2b0fed133ef329bc206cccef2305f986ec3560b2fca3d
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 Nov 24, 2026.

Transparency log

Security for clifft 0.14.0rc3

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

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for clifft-0.14.0rc3.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 Nov 24, 2026.

Transparency log

A 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.

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