Registry / ai-ml / panta-sim

panta-sim

JSON →
library0.8.22pypypi✓ verified 80d ago

PantaSim is a quantum circuit simulator with a Rust core and Python bindings, offering fast simulation for up to ~40 qubits. Current version 0.8.22, released sporadically. Supports statevector simulation, noise models, and GPU acceleration via CUDA.

pip install panta-sim
INSTALL
IMPORT
SIG · PANTA-SIM
P
panta-sim
ai-mlpythonv0.8.22
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PantaEstimator
from panta_sim import PantaEstimator
from panta_sim import PantaSim
QuantumCircuit
from panta_sim import QuantumCircuit
VQE
from panta_sim import VQE

Basic quantum circuit simulation with statevector and measurement.

from panta_sim import PantaSim, Circuit import numpy as np # Create a circuit with 2 qubits circuit = Circuit(2) circuit.h(0) circuit.cx(0, 1) circuit.measure_all() # Simulate sim = PantaSim() result = sim.run(circuit, shots=1000) print(result.get_counts())
Debug
Known issues
deprecatedThe `execute` function from panta_sim is deprecated in favor of `PantaSim.run` since v0.8.0.
fix
Use `sim = PantaSim(); result = sim.run(circuit, shots=... )` instead.
affects: >=0.8.0
breakingIn v0.8.0, the `Circuit` class moved from `panta_sim.circuit` to top-level `panta_sim`. Old imports will break.
fix
Change import to `from panta_sim import Circuit`.
affects: >=0.8.0
gotchaGPU backend requires CuPy and CUDA toolkit. Installation with `panta-sim[cuda]` does NOT install CUDA itself; you must have CUDA 11+ installed separately.
fix
Install CUDA toolkit from NVIDIA, then `pip install panta-sim[cuda]`.
affects: all
gotchaSimulation of circuits with >30 qubits may require significant memory (~16 GB for 30 qubits). The simulator does not warn before allocation.
fix
Monitor memory usage; consider using smaller circuits or GPU backend.
affects: all
Upgrade
Version history
0.8.22latest on PyPI · released Jun 1, 2026
Audit
Dependencies
numpyrequiredRequired for array operations
cupyoptionalRequired for GPU (CUDA) backend
Agent activity
5 hits · last 30 days
node
4
Resources
panta-sim — pip install panta-sim · libregistry