Skip to main content

vikshep-quantum

A deterministic quantum state-vector simulator. States, probabilities, seeded measurement samples and expectation values have the same bits on every supported platform and for every thread count. Every run can produce a manifest whose hash identifies exactly what was computed (specification VQS-1).

pip install vikshep-quantum

Wheels are built for Linux (x86_64, AArch64), macOS (arm64, x86_64) and Windows (x86_64), for Python 3.10 and later. The distribution is called vikshep-quantum, and the import name is vikshep_quantum.

import vikshep_quantum as vq

bell = vq.Circuit(2).h(0).cx(0, 1)
sim = vq.Simulator(2)
sim.run(bell)
print(vq.counts(sim.sample(1000, seed=7), 2))   # {'00': ..., '11': ...}
print(sim.expectation("Z0 Z1"))                 # 1.0 up to binary32 rounding
print(sim.state_oid())                          # 28-hex OID of the state bytes
print(sim.manifest())                           # canonical JSON run record
print(vq.conformance_selftest()["failed"])      # 0

Qubit 0 is the least significant bit of a basis-state index, as in Qiskit. The state is complex64 (binary32 components). Arrays passed in are converted with numpy and copied in row-major order before any computation, so strides, memory order and byte order never change a result.

From Qiskit

pip install "vikshep-quantum[qiskit]"
from qiskit import QuantumCircuit
from vikshep_quantum.qiskit import Estimator, Sampler, VikshepSimulator

bell = QuantumCircuit(2)
bell.h(0)
bell.cx(0, 1)
measured = bell.measure_all(inplace=False)

VikshepSimulator().run(measured, shots=1000, seed_simulator=7).result().get_counts()
Sampler(seed=7).run([measured], shots=1000).result()[0].data.meas.get_counts()
Estimator().run([(bell, "ZZ")]).result()[0].data.evs

Circuits need not be transpiled: gates are converted directly or expanded with their Qiskit definitions. Measurements must come at the end of the circuit, and the estimator is exact. If you do transpile, use optimization_level=0: at higher levels Qiskit can return a different circuit on another machine, or on each call. Details are in the README.

Why it matters

In a measured comparison on six machines, Qiskit Aer and PennyLane Lightning gave different state bytes on different machines. In single precision, they also gave different seeded shots and different training runs. Vikshep Quantum gave the same bytes on all six (demo/divergence).

Licence: AGPL-3.0-or-later; a commercial licence is available (LICENSING.md).

Metadata

Release files for vikshep-quantum 0.2.0

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

Built distributions (wheels)

Table of built distributions (wheels) for vikshep-quantum 0.2.0
File Actions
vikshep_quantum-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for vikshep_quantum-0.2.0-cp310-abi3-win_amd64.whl
vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
vikshep_quantum-0.2.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for vikshep_quantum-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
vikshep_quantum-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for vikshep_quantum-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 2.5 MB

Release files / vikshep_quantum-0.2.0-cp310-abi3-win_amd64.whl

Download URL vikshep_quantum-0.2.0-cp310-abi3-win_amd64.whl
Size 427.8 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
77ac0f7ccd201f1f17d704d033d7566b999bd8f83f8f21786b53b9fe851b4439
BLAKE2b-256 checksum
How to use checksums
f39b3b9db4ab2e33801bbc2f68b4b013fa3e3425e7a7e1ff5a413b9e4f5363cb
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 23, 2026.

Transparency log

Release files / vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 538.1 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
784480f74912685f21373ef9701d6675b86b5e3250a054b398bdd4a949e2dc02
BLAKE2b-256 checksum
How to use checksums
059aac771120373c3873d57595271b680ea1faf32a1bf89ccd772d5df1d6d575
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 23, 2026.

Transparency log

Release files / vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL vikshep_quantum-0.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 507.6 kB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
f99af6a5d9c4c2242f2c06b7ae2a444907a5361abb6531dc706eb1bc821dc42e
BLAKE2b-256 checksum
How to use checksums
b28194f20da4d733f0e779014f359955accd60d3123216b92f79c14cedb562e5
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 23, 2026.

Transparency log

Release files / vikshep_quantum-0.2.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL vikshep_quantum-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Size 480.5 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e5140bd12f51db1a8e7020e5cb14db7a773dee8a00d2d2c7f9c86e21d817221b
BLAKE2b-256 checksum
How to use checksums
8c013d632ac4b77568a113329969260b5f55ea1455c8b34b7b436b82a7237062
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 23, 2026.

Transparency log

Release files / vikshep_quantum-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL vikshep_quantum-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 499.9 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
38f5d94acc75d1102612020f9c08ce3529aecf9f25be629ec39d9d2b811e0e14
BLAKE2b-256 checksum
How to use checksums
bb4a7ec0936fb8280755d69c818305175a8326def34d87edc8e63ae81fa4371f
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 23, 2026.

Transparency log

Security for vikshep-quantum 0.2.0

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 vikshep_quantum-0.2.0-cp310-abi3-win_amd64.whl

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 23, 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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

5 release files Full provenance

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