$npx skillfedfor your agent

samplomatic

Serving all of your circuit sampling needs since 2025.

With conditionsPyPI Scientific/EngineeringReleased Jun 2026306.7K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — samplomatic-0.20.0-py3-none-any.whl
v0.20.0 · released 2026-06-23 · Python >=3.10 · 5 runtime deps: qiskit, numpy, rustworkx, pybase64, orjson

Yes, if you work with Qiskit and need systematic circuit randomization for error mitigation or noise studies. The low install friction, active maintenance, and permissive license make it a reasonable choice. However, expect breaking changes between minor versions (beta stage), so pin your dependency. No known security vulnerabilities as of 2026-08-14.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python ≥3.10 and qiskit runtime dependency; quantum circuit construction knowledge assumed.
  • Low friction install with a pure-Python wheel.
  • Active maintenance as of 2026-08-12.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

last release 2026-06-23 (52 days) · last repo commit 2026-08-12 · 24 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 306,696 downloads/mo, #7,785 on PyPI

Verify before relying

pip install samplomatic

from samplomatic import build, Twirl
from qiskit.circuit import QuantumCircuit

circuit = QuantumCircuit(2)
with circuit.box([Twirl()]):
    circuit.sx(0)
    circuit.cx(0, 1)

template, samplex = build(circuit)
samples = samplex.sample({"parameter_values": []}, num_randomizations=5)
  • Scope and maturity of the extensible randomization group system beyond Pauli twirling.
  • Performance characteristics for large circuits or high-volume sampling.
  • Whether visualization dependencies (samplomatic[vis]) are commonly needed.
Same gist for agents: .md · .json

What it is and what it does

Samplomatic is a library for generating randomized variants of quantum circuits with explicit, declarative intent. It works by annotating sections of a Qiskit quantum circuit with randomization instructions (like Twirl for Pauli twirling), then using a build process to generate a template circuit and a sampling engine (samplex) that encodes the randomization logic as a directed acyclic graph. The samplex can then produce many randomized circuit arguments without regenerating circuits, making it efficient for tasks like error mitigation through circuit randomization.

The library is designed for quantum researchers and engineers who need to systematically apply randomization patterns to circuits—whether for Pauli twirling, noise injection, or custom group-based transformations. It depends on qiskit, numpy, rustworkx, pybase64, and orjson. As a beta-stage project (version 0.20.0), it is actively maintained but subject to breaking changes between minor versions; the project may also relocate from its current GitHub home.

Use it for

  • Apply Pauli twirling to quantum circuits for error mitigation in near-term quantum processors.
  • Generate multiple randomized circuit variants from a single template for statistical noise characterization.
  • Inject sampling-based noise into quantum circuits to study robustness under realistic error models.
  • Parametrize quantum circuits with randomization intent for transpiler-based circuit optimization.
  • Extend circuit randomization with custom group-based transformations for specialized quantum protocols.

Worth the install?

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

With conditions

Yes, if you work with Qiskit and need systematic circuit randomization for error mitigation or noise studies.

The low install friction, active maintenance, and permissive license make it a reasonable choice. However, expect breaking changes between minor versions (beta stage), so pin your dependency. No known security vulnerabilities as of 2026-08-14.

Install

samplomatic on PyPI

Before you install

Low friction install with a pure-Python wheel. Active maintenance as of 2026-08-12. Beta-stage library (version 0.20.0) with documented breaking changes between minor versions—pin dependencies accordingly. Requires Python ≥3.10.

Requires Python ≥3.10 and qiskit runtime dependency; quantum circuit construction knowledge assumed.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.

Quickstart

pip install samplomatic

from samplomatic import build, Twirl
from qiskit.circuit import QuantumCircuit

circuit = QuantumCircuit(2)
with circuit.box([Twirl()]):
    circuit.sx(0)
    circuit.cx(0, 1)

template, samplex = build(circuit)
samples = samplex.sample({"parameter_values": []}, num_randomizations=5)

Verify before relying

  • Scope and maturity of the extensible randomization group system beyond Pauli twirling.
  • Performance characteristics for large circuits or high-volume sampling.
  • Whether visualization dependencies (samplomatic[vis]) are commonly needed.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
qiskitnumpyrustworkxpybase64orjson
MaintenanceActively maintained 52 days since the last release
Last repo commit
First released
Downloads306,696 / month, #7,785 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 3 - AlphaIntended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.11

Evidence: samplomatic-0.20.0-py3-none-any.whl

Tags

Capabilities
quantum circuit samplingpauli twirlingcircuit randomizationquantum noise injectionqiskit circuit variantsquantum circuit parametrizationcircuit template generation
Topics
quantum-computingerror-mitigationcircuit-randomization

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 › “quantum circuit sampling”

  • samplomaticSamplomatic generates randomized variants of quantum circuits with…
  • stimStim is a fast simulator for quantum stabilizer circuits, providing…
  • sinterSinter performs fast Monte Carlo sampling of quantum error correction…

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 qiskit · stim · qiskit-aer · sinter · quimb · mqt.qcec · qiskit-experiments · qiskit-terra · PyMatching · pyvsc