Rodras / sergio
Publicdefault_spec() below:
| Zone | x | y | Allowed gates |
|---|---|---|---|
| storage | 0 – 9 | 0 – 9 | rx, rz |
| entangling | 0 – 9 | 10 – 19 | cz |
measure, barrier and move are allowed anywhere.
Geometry. Row and column indices are shared by all zones, so cols=(0, 1) covers columns 0 and 1 in
storage and in the entangling zone alike. Physical positions come from each zone's geometry:
spacing 1.0 apart."pairs": {"axis": "x", "distance": 0.3}.cz only act within a pair: both atoms must be on the same row, in columns 2k and 2k+1.(x, y) site. Every site must be in storage; the
validator checks this.rows (y) and cols (x), and every atom on a rows × cols
intersection moves to the matching new_rows × new_cols intersection. You also list the qubits being
moved. A move leaves the quantum state unchanged, so its definition is the identity.rows, cols): must be contiguous and ascending, e.g. cols=(0, 1, 2, 3).new_rows, new_cols): the exact final coordinates of the moved atoms, ascending.(0, 1, 2, 3) -> (0, 2, 4, 6). Moves that
break this are still allowed; the validator logs a warning, counts it and doubles that move's time.0, 1, 4 of range(5) (gaps 1, 3):(0, 2, 8) works (gaps ×2);(0, 1, 2) and (0, 2, 4) are allowed but logged, because the gaps don't scale evenly.cols=(0, 2);(0, 1) -> (2, 0);Move already rejects them when you build the circuit. The
others depend on where the atoms are, so only the validator catches them.compile_circuit(circuit, architecture_spec) below. It returns the compiled
circuit and an Architecture(initial_loading, spec=architecture_spec) holding your initial loading.planqc/pushquantum-2026-metric-hea
dataset (OpenQASM 2.0) goes through compile_circuit on the default architecture. The table below
updates whenever you change compile_circuit.move instruction for AOD row/column moves;Architecture that loads its zones from a spec, together with the initial positions of the qubits;compile_circuit(circuit, architecture_spec) -> (circuit, architecture).pushquantum-validator). It checks that
every move and gate follows the rules below, and that the circuit is equivalent to the input.
Open this notebook with marimo edit --sandbox notebook.py: the dependencies are declared inline.