Dyber SDK

Run a circuit on the H-cat simulator

Build a gate-model quantum circuit, execute it on the physics-informed H-cat simulator, and inspect the measurement counts and resource estimates. This is the same API as pip install dyber, running in your browser.

q0: ─── q1: ───
Python equivalent
from dyber import Dyber, Circuit

dy = Dyber()
c = Circuit(2)
c.h(0); c.cx(0, 1); c.measure_all()
job = dy.backend("local_simulator").run(c, shots=1024)
print(job.result().counts())

Results

Build a circuit and click Run.

Statevector simulator running in your browser. Same gate set and resource model as the Python SDK. Physics-informed noise: a genuine Monte Carlo quantum-trajectory sampler applies the validated v2 loss model (heralded erasure plus silent Pauli) at the 0.5 percent per-cycle loss spec; set loss to zero for the ideal result. The hcat_qpu hardware backend is not yet available (hardware in development). Install for Python: pip install dyber (0.2.0, Apache-2.0).

Three ways to access the machine

One circuit model, three front doors. Whatever you write runs on the local simulator today and the H-cat QPU later, unchanged.

1. Python SDK

pip install dyber

from dyber import Dyber, Circuit
c = Circuit(2); c.h(0); c.cx(0, 1)
c.measure_all()
job = Dyber().backend("local_simulator") \
             .run(c, shots=1000)
print(job.result().counts())

2. Terminal (CLI)

# run any OpenQASM 3 file
dyber run bell.qasm --shots 1000

# start the local REST API
dyber serve

# built-in starter examples
dyber examples bell

3. REST API (any language)

curl -s -X POST http://127.0.0.1:8787/jobs \
  -H "Content-Type: application/json" \
  -d '{"qasm": "OPENQASM 3.0; qubit[2] q; bit[2] c;
       h q[0]; cx q[0], q[1];
       c = measure q;", "shots": 1000}'
# then GET /jobs/{id}/result

Bring your own language

Dyber deliberately has no proprietary quantum language. The SDK speaks OpenQASM 3 (import and export, with 2.0 compatibility), and ships dependency-free adapters for Qiskit (dyber.interop.from_qiskit(qc)) and Cirq (from_cirq(c)), so existing circuits run as-is. The REST API accepts raw OpenQASM text or a JSON circuit. Seven runnable examples ship with the source: GHZ, teleportation, Grover, parameter sweeps, QASM round-trip, Qiskit interop, and a curl API walkthrough. Dyber-specific value lives below the language, in the H-cat native-gate lowering and the physics-calibrated noise model, not in syntax.