Metadata-Version: 2.5
Name: quantakit
Version: 1.0.0
Summary: QuantaKit SDK — build, simulate and run quantum circuits. Book Edition 1.0: stable API, offline local simulator.
Project-URL: Homepage, https://quantakit.my
Project-URL: Documentation, https://quantakit.my/docs
Author: Alaganu Enterprise
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: circuit,education,openqasm,quantum,quantum computing,qubit,simulator
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Physics
Requires-Python: >=3.10
Requires-Dist: numpy>=1.23
Provides-Extra: test
Requires-Dist: pytest>=7; extra == 'test'
Provides-Extra: visualization
Requires-Dist: matplotlib>=3.6; extra == 'visualization'
Description-Content-Type: text/markdown

# 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.

```bash
pip install quantakit==1.0.0          # the exact version the book uses
pip install "quantakit[visualization]==1.0.0"   # + matplotlib plots
```

```python
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
