⚛️ QuantSDK¶
Write quantum code once, run anywhere.¶
A framework-agnostic quantum computing SDK by TheQuantAI.
Why QuantSDK?¶
| Problem | QuantSDK Solution |
|---|---|
| Vendor lock-in — rewriting circuits for each framework | Write once in QuantSDK, export to Qiskit, Cirq, PennyLane, or OpenQASM |
| Backend complexity — each provider has different APIs | qs.run(circuit, backend="ibm_brisbane") — one line, any backend |
| Steep learning curve — quantum SDKs are verbose | Pythonic, fluent API with circuit.h(0).cx(0, 1).measure_all() |
| No smart routing — manually choosing optimal hardware | QuantRouter picks the best backend for your circuit (coming v0.2) |
Quick Example¶
import quantsdk as qs
# Create a Bell State
circuit = qs.Circuit(2, name="bell")
circuit.h(0).cx(0, 1).measure_all()
# Run locally (instant, free)
result = qs.run(circuit, shots=1000)
print(result.counts) # {'00': 512, '11': 488}
print(result.most_likely) # '00'
# Visualize
result.plot_histogram()
# Export to any framework
qc = circuit.to_qiskit()
qasm = circuit.to_openqasm()
Feature Highlights¶
-
Framework Interop
Seamlessly convert to and from Qiskit, Cirq, PennyLane, and OpenQASM 2.0.
-
50+ Quantum Gates
Full gate library: Pauli, Clifford, controlled, parametric rotations, multi-qubit, and more.
-
Rich Results
Histograms, probabilities, DataFrames, expectation values — all built in.
-
Multiple Backends
Local simulator, IBM Quantum, IonQ, GPU — one API for all.
Installation¶
With optional backends:
Project Status¶
| Component | Status | Version |
|---|---|---|
| Core SDK | Stable | 0.1.0-dev |
| Gate Library | 50+ gates | 0.1.0-dev |
| Local Simulator | Working | 0.1.0-dev |
| Qiskit Interop | Working | 0.1.0-dev |
| OpenQASM Interop | Working | 0.1.0-dev |
| IBM Backend | Working | 0.1.0-dev |
| Aer Backend | Working | 0.1.0-dev |
| QuantRouter | v0.2 | Planned |
| Cirq Interop | v0.2 | Planned |
| PennyLane Interop | v0.2 | Planned |
Built with by TheQuantAI — Part of TheQuantCloud