Quickstart
Get from a fresh clone to a stored quantum job result in a few minutes.
Install
git clone https://github.com/BelizeChain/kinich-quantum.git
cd kinich-quantum
pip install -r requirements.txt
Run a Simulation
The local simulator backend requires no credentials — ideal for development:
from qml.utils.backend_manager import BackendManager
from kinich.local_execution import execute_local_circuit
manager = BackendManager()
backend = manager.get_backend("simulator") # Qiskit AerSimulator
job = execute_local_circuit(circuit, backend="simulator", shots=1024)
Dispatch to a Cloud Provider
Cloud backends read credentials from environment variables:
export AZURE_QUANTUM_SUBSCRIPTION_ID=...
export AZURE_QUANTUM_RESOURCE_GROUP=...
export AZURE_QUANTUM_WORKSPACE=...
from qml.utils.backend_manager import BackendManager
manager = BackendManager()
backend = manager.get_backend("azure_ionq")
job = backend.run(circuit, shots=1024)
Every backend name that is not reachable falls back to the local simulator rather than failing the call.
Store Results on Pakit
Quantum results can be content-addressed and anchored through Pakit:
from storage.quantum_results_store import QuantumResultsStore
store = QuantumResultsStore(pakit_api_url=os.environ["PAKIT_API_URL"])
cid, proof = store.store_quantum_result(
job_id="my-quantum-job",
circuit_qasm=circuit_qasm,
counts={"00": 512, "11": 512},
backend="azure_ionq",
)
print(f"Stored at CID: {cid}")
Results over 1 MB are chunked automatically into 256 KB pieces and reassembled on
retrieval. Anchoring a Merkle proof on chain requires a blockchain_connector — without
one the store returns None as the proof.
REST API
The service exposes a FastAPI interface for programmatic access:
curl http://localhost:8888/health
On Ceiba: https://testnet.belizechain.org/api/kinich/health (availability per Testnet).
Next Steps
- QML Architecture — build a classifier
- Hybrid Workflow — Nawal + Kinich pipelines
- Backends