QuantaKit SDK — Book Edition 1.0
Build, simulate and run quantum circuits in Python. Everything runs offline on the built-in simulator — no account, no token, no quota. QuantaKit Cloud (https://quantakit.my) is optional.
pip install quantakit==1.0.0 # the exact version the book uses
pip install "quantakit[visualization]==1.0.0" # + matplotlib plots
from quantakit import QuantumCircuit, transpile, LocalSimulator
from quantakit.primitives import Sampler
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
qc.measure_all()
print(qc.draw())
backend = LocalSimulator() # free, offline
job = Sampler(backend).run([transpile(qc, backend)], shots=4000, seed=7)
print(job.result()[0].data.meas.get_counts()) # {'00': ~2000, '11': ~2000}
Switch to the cloud by changing one line: backend = CloudService(token="qk_...").least_busy(min_qubits=2).
What's inside
| Module | Contents |
|---|---|
quantakit |
QuantumCircuit, registers, Parameter, ParameterVector, transpile, LocalSimulator |
quantakit.circuit.library |
Bell, GHZ, QFT, Grover, phase estimation, real_amplitudes ansatz |
quantakit.quantum_info |
Statevector, DensityMatrix, Operator, SparsePauliOp, partial_trace, state_fidelity, entropy |
quantakit.primitives |
Sampler (counts) and Estimator (expectation values) — local or cloud |
quantakit.qasm3 / qasm2 |
OpenQASM import/export |
quantakit.visualization |
text_histogram (no dependencies), plot_histogram, plot_bloch_multivector |
quantakit.cloud |
CloudService for QuantaKit Cloud (optional) |
Bit strings are written with the highest qubit on the left ("01" means q0 = 1, q1 = 0).
Stability promise (Book Edition)
- Version 1.0.0 is frozen for the book. Pin it:
pip install quantakit==1.0.0. - Every 1.x release keeps every documented 1.0 API working. Anything deprecated keeps working for at least two minor releases.
- Breaking changes only happen in 2.0, which will be announced and will never replace 1.x on existing installs.
Documentation: https://quantakit.my/docs · Licence: Apache 2.0
Metadata
Release files for quantakit 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quantakit-1.0.0.tar.gz | 41.4 kB | Without provenance | Details for quantakit-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantakit-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for quantakit-1.0.0-py3-none-any.whl |
Total release size: 87.5 kB
Release files / quantakit-1.0.0.tar.gz
| Download URL | quantakit-1.0.0.tar.gz |
|---|---|
| Size | 41.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ba600358037a8adef5d2aa2a54a66c36adad706576604828096c143d1b9e8ce
|
|
BLAKE2b-256 checksum How to use checksums |
286668b6bdef0ba9f6d80e53f05941063d34eb4d0853383d0d63803f0dcb6f27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / quantakit-1.0.0-py3-none-any.whl
| Download URL | quantakit-1.0.0-py3-none-any.whl |
|---|---|
| Size | 46.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c456839adfc4a026742af831cbc77581e03cfd275f56cf0604f1c6074103a9a6
|
|
BLAKE2b-256 checksum How to use checksums |
3540b178d6b8ef15cc68d86bed4d1b5a5ad6fe34977c997a6569f2e4424cb1c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for quantakit 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.