$npx skillfedfor your agent

stim

A fast library for analyzing with quantum stabilizer circuits.

With conditionsPyPI Scientific/EngineeringReleased May 2026345.6K downloads / moApache 2Platform wheel

Decision gist · record as of 2026-08-14

platform wheels — stim-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl · stim-1.16.0-cp310-cp310-macosx_11_0_arm64.whl · stim-1.16.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
v1.16.0 · released 2026-05-22 · Python >=3.6.0 · 1 runtime deps: numpy

Yes, if you work with quantum stabilizer circuits, error correction codes, or Clifford-based quantum algorithms. The package is actively maintained, has no security issues, installs easily on modern Python versions, and provides specialized tools that are difficult to replicate elsewhere. Not relevant for general-purpose quantum simulation beyond the stabilizer formalism.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Precompiled wheels available for Python 3.10–3.14 on macOS, Linux, and Windows reduce install friction to medium.
  • Active maintenance with recent releases (84 days since last update) and 803 GitHub stars indicate ongoing development and community use.

License · maintenance · safety

Apache 2 (permissive) — Licensed under Apache 2 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for academic, commercial, and derivative work without license compatibility concerns.

last release 2026-05-22 (84 days) · last repo commit 2026-08-04 · 803 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 345,646 downloads/mo, #7,361 on PyPI

Verify before relying

pip install stim
import stim

# Interactive simulation
s = stim.TableauSimulator()
s.h(0)
s.cnot(0, 1)
print(s.measure_many(0, 1))

# High-speed sampling
c = stim.Circuit()
c.append("H", [0])
for k in range(1, 10):
    c.append("CNOT", [0, k])
sampler = c.compile_sampler()
batch = sampler.sample(1024)
  • Performance characteristics (e.g., throughput in samples/second or simulation speed relative to other simulators) not quantified in the fact sheet.
  • Scalability limits for circuit size, qubit count, or noise model complexity are not specified.
  • Whether the package includes error correction code analysis tools beyond basic tableau operations.
Same gist for agents: .md · .json

What it is and what it does

Stim is a specialized library for simulating and analyzing quantum stabilizer circuits—a restricted but practically important class of quantum computations used in quantum error correction and related research. It provides three main interfaces: TableauSimulator for step-by-step interactive simulation with state inspection, a Circuit compiler that generates high-performance samplers for batch measurement outcomes, and standalone Tableau and PauliString types for algebraic manipulation of stabilizer states and Pauli operators. The library depends only on numpy and is built with compiled extensions for speed, supporting Python 3.6 and later across major platforms.

Stim is designed for researchers and engineers working with quantum error correction, quantum simulation benchmarks, and stabilizer-based quantum algorithms. It trades generality for speed—it cannot simulate arbitrary quantum circuits, only those within the stabilizer formalism—but within that domain it enables fast sampling and analysis. The package is actively maintained, has no known security vulnerabilities, and is permissively licensed.

Use it for

  • Simulate quantum error correction codes and measure detection event statistics to validate code performance.
  • Generate large batches of measurement samples from stabilizer circuits for statistical analysis and benchmarking.
  • Explore Pauli operator algebra and tableau transformations for theoretical quantum computing research.
  • Test quantum algorithms that use only Clifford gates and measurements before running on real quantum hardware.
  • Analyze noise effects in stabilizer circuits by sampling from circuits with depolarization and error channels.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with quantum stabilizer circuits, error correction codes, or Clifford-based quantum algorithms.

The package is actively maintained, has no security issues, installs easily on modern Python versions, and provides specialized tools that are difficult to replicate elsewhere. Not relevant for general-purpose quantum simulation beyond the stabilizer formalism.

Install

stim on PyPI

Before you install

Precompiled wheels available for Python 3.10–3.14 on macOS, Linux, and Windows reduce install friction to medium. Active maintenance with recent releases (84 days since last update) and 803 GitHub stars indicate ongoing development and community use.

License in practice

Licensed under Apache 2 (permissive), allowing free use, modification, and distribution with minimal restrictions—suitable for academic, commercial, and derivative work without license compatibility concerns.

Quickstart

pip install stim
import stim

# Interactive simulation
s = stim.TableauSimulator()
s.h(0)
s.cnot(0, 1)
print(s.measure_many(0, 1))

# High-speed sampling
c = stim.Circuit()
c.append("H", [0])
for k in range(1, 10):
    c.append("CNOT", [0, k])
sampler = c.compile_sampler()
batch = sampler.sample(1024)

Verify before relying

  • Performance characteristics (e.g., throughput in samples/second or simulation speed relative to other simulators) not quantified in the fact sheet.
  • Scalability limits for circuit size, qubit count, or noise model complexity are not specified.
  • Whether the package includes error correction code analysis tools beyond basic tableau operations.

Package facts

LicenseApache 2 permissive
Python supportSupports the current Python release >=3.6.0
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 84 days since the last release
Last repo commit
First released
Downloads345,646 / month, #7,361 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: stim-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl; stim-1.16.0-cp310-cp310-macosx_11_0_arm64.whl; stim-1.16.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; stim-1.16.0-cp310-cp310-win_amd64.whl; stim-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl; stim-1.16.0-cp311-cp311-macosx_11_0_arm64.whl; stim-1.16.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; stim-1.16.0-cp311-cp311-win_amd64.whl; stim-1.16.0-cp312-cp312-macosx_10_13_x86_64.whl; stim-1.16.0-cp312-cp312-macosx_11_0_arm64.whl; stim-1.16.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; stim-1.16.0-cp312-cp312-win_amd64.whl; stim-1.16.0-cp313-cp313-macosx_10_13_x86_64.whl; stim-1.16.0-cp313-cp313-macosx_11_0_arm64.whl; stim-1.16.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; stim-1.16.0-cp313-cp313-win_amd64.whl; stim-1.16.0-cp314-cp314-macosx_10_15_x86_64.whl; stim-1.16.0-cp314-cp314-macosx_11_0_arm64.whl; stim-1.16.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl; stim-1.16.0-cp314-cp314-win_amd64.whl

Tags

Capabilities
quantum circuit simulatorstabilizer code simulationquantum state samplingquantum error correctiontableau simulatorpauli string operationsquantum circuit analysis
Topics
quantum-computingerror-correctionsimulation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “stabilizer code simulation”

  • stimStim is a fast simulator for quantum stabilizer circuits, providing…
  • quadrantsQuadrants is a high-performance compiler that translates Python code…
  • warp-langWarp is a Python framework that JIT-compiles regular Python functions…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also sinter · samplomatic · qiskit · cirq · cirq-core · cirq-aqt · qiskit-terra · qiskit-aer · cirq-ionq · amazon-braket-default-simulator