Skip to content
Tech Interview Prep
Technical interview guide

Quantum Hardware Architectures

The competing physical implementations of a qubit (superconducting, trapped-ion, and photonic) and their tradeoffs in coherence time, gate fidelity, connectivity, and scalability.

Minutes to read
4
Practice MCQs
25
Interview Q&A
25
Edition
v3
Editorial status
Reviewed

Scope: IBM Quantum and Amazon Braket current hardware, metrics, calibration, and device documentation; modality provider guidance reviewed 2026-09-04.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-1

Evaluate and validate a quantum-hardware decision for modality comparison.

Answer

What a strong answer sounds like

Pin the decision first: "modality comparison" is not "which technology is best". It is "which physical qubit technology minimises time-to-solution and cost-per-successful-shot for this circuit." State the workload's four numbers up front: width (logical qubits), depth, interaction graph (all-to-all vs. local), and required end-to-end fidelity. Then map each onto the modality's physics.

The four mainstream modalities and what actually differs:

  • Superconducting transmons (IBM, Google, Rigetti): fixed or tunable transmons, nearest-neighbour coupling on a lattice (IBM heavy-hex, degree 2–3). Two-qubit gates ~20–100 ns, two-qubit error ~0.1–1%, T2 ~100–300 µs, readout ~99%+ in ~1 µs.
  • Trapped ions (Quantinuum, IonQ): hyperfine qubits, all-to-all connectivity within a chain, two-qubit gates ~100 µs–1 ms, two-qubit error ~0.1–0.5%, coherence ~1 s, readout ~99.9% but slow.
  • Neutral atoms (QuEra, Pasqal): Rydberg blockade, reconfigurable all-to-all within a zone, gates ~0.1–1 µs, error ~0.5–2%, atom loss is the dominant error.
  • Photonic (PsiQuantum, Xanadu): room-temperature, but probabilistic gates and photon loss; measurement-based.

The mechanism that decides most comparisons is connectivity × gate time. A superconducting nearest-neighbour lattice forces SWAP routing: each SWAP is 3 CZ gates, so an all-to-all algorithm pays a 3–10× two-qubit-gate multiplier. Trapped ions pay nothing for connectivity but each gate is ~1000× slower.

Worked check (hypothetical figures, first-order estimate). A 50-qubit algorithm needs 10,000 logical two-qubit gates, all-to-all.

superconductingtrapped ion
routing multiplier×5 → 50,000 CZ×1 → 10,000
two-qubit error0.3%0.2%
expected errors50,000 × 0.003 = 15010,000 × 0.002 = 20
gate time50,000 × 40 ns = 2 ms10,000 × 200 µs = 2 s

So the ion machine has ~7× fewer errors but ~1000× the gate time. If the algorithm needs ~20 error-free gates to succeed, the ion machine wins on fidelity; if it is latency-bound or you need thousands of shots, superconducting wins on throughput. That is the trade-off the matrix must expose, not a single "best modality."

Failure modes and how you catch them:

  • Vendor metric mixed: comparing a best-case two-qubit fidelity from one vendor against a median from another. Detect by requiring the same statistic (median, per-pair) and the same benchmark (randomized benchmarking vs. cycle benchmarking) from every vendor.
  • Unavailable feature assumed: assuming all-to-all on a device that ships nearest-neighbour. Detect by reading the coupling map, not the marketing page.
  • Logical vs. physical confusion: quoting 1000 physical qubits as if they were 1000 logical. Detect by asking for the logical-qubit count at the target code distance.
  • Problem model incompatible: a gate-model algorithm on an annealer, or a circuit that needs mid-circuit measurement on a device without it. Detect by checking the ISA the vendor actually exposes.

When not to use this: for a 5-qubit toy circuit, modality is irrelevant. Pick whatever has the best SDK. The matrix only earns its keep when routing overhead or gate time dominates.

These ranges are published figures as of 2024–2025 and move every few months; re-pull them from vendor datasheets at decision time.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-2

Evaluate and validate a quantum-hardware decision for superconducting qubits.

Answer

The decision isn't "are transmons good." It's "does this device's measured error budget clear my algorithm's requirement at my circuit depth, and can I keep it there." So I'd state three assumptions up front: the target algorithm and its two-qubit-gate count, the required logical error rate, and whether the workload needs connectivity beyond nearest-neighbor. Then I'd answer against measured data on the actual device, not datasheet peaks.

A transmon is a Josephson junction, a nonlinear inductor, shunted by a large capacitor, with EJ/EC around 50–100. The nonlinearity gives an anharmonicity of roughly −200 to −300 MHz, which is what lets you address the |0⟩→|1⟩ transition without also driving |1⟩→|2⟩. That anharmonicity is finite, so leakage is always a live risk.

Speed vs leakage. A faster gate needs a larger drive amplitude. The drive couples to |1⟩→|2⟩ as well, and leakage per gate scales with drive amplitude, so shortening a single-qubit gate from ~40 ns to ~20 ns roughly doubles the amplitude and pushes leakage up unless you retune the DRAG (derivative removal by adiabatic gate) correction. DRAG cancels the leading leakage term; it does not cancel all of it.

Where crosstalk comes from. The coupler that enables a two-qubit gate also leaves a residual static ZZ coupling of tens of kHz between neighbors. During a gate on one pair, a spectator qubit accumulates a phase shift: a coherent error that randomized benchmarking on isolated pairs will not see. Frequency collisions, where two qubits land on the same frequency, turn that always-on coupling into a large gate error on specific pairs.

Typical figures for current devices (ranges from published characterizations, not a single vendor's peak):

quantitytypical valuenote
single-qubit gate20–40 ns, error 1e-4–1e-3DRAG-shaped
two-qubit gate100–500 ns, error 0.1–1%CZ or cross-resonance
T1100–300 µsmodern transmon
T2 (echo)100–200 µs
anharmonicity−200 to −300 MHzsets leakage addressability
readout300–1000 ns, fidelity 95–99%dispersive
base temperature~10–20 mKdilution refrigerator

Alternatives and when to pick them. Fixed-frequency transmons (IBM's Heron, 133 qubits, 2023) have stable coherence but need cross-resonance gates; tunable transmons (Google's Willow, 105 qubits, 2024) allow faster CZ but add flux noise and calibration load. Trapped ions give all-to-all connectivity and T2 of seconds, but two-qubit gates take ~100 µs versus ~100 ns: pick ions when connectivity dominates, superconducting when gate count dominates.

Failure modes and how to detect them.

  • Frequency collision: two-tone spectroscopy sweep; symptom is elevated two-qubit error on one specific pair.
  • Drift: T1/T2 move over hours; detect with periodic randomized benchmarking and recalibrate.
  • Leakage: leakage RB; symptom is correlated errors that standard RB underestimates.
  • Readout crosstalk: compare simultaneous versus isolated readout fidelity.

Worked arithmetic. At 0.5% two-qubit error, 1000 two-qubit gates give (0.995)^1000 ≈ 0.7% success: a 1000-gate circuit is unusable without error correction. That number, not the peak gate fidelity, is the decision.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Evaluate and validate a quantum-hardware decision for trapped ions.

Answer

Answer first. The decision isn't "are trapped ions good": it's "does this circuit, compiled to this machine, beat the alternative on the metric that matters." Pin three things before judging: the workload (two-qubit gate count, depth, connectivity demand, mid-circuit measurement), the target (ion species, chain length, gate scheme), and the metric (success probability per shot vs. shots per hour). Then compile the real circuit and count.

Why all-to-all is real but not free. Qubits are internal states of individual ions; two-qubit gates are mediated by the shared motional modes of the whole chain. That gives genuine all-to-all connectivity, any pair entangles without SWAPs, but the cost hides in the mode structure. The axial modes of an N-ion chain fill a band from ω_z (center-of-mass) to ≈√3 ω_z, so adjacent modes sit roughly 0.73 ω_z/N apart. At N=20 and ω_z/2π = 1 MHz that's ~38 kHz; laser pulses have finite spectral width, so neighbouring modes get partially driven and fidelity drops. The COM mode is shared by all N ions, so each ion's coupling to it scales as 1/√N and the gate time grows as √N. The pair you pick and the chain length you pick change both fidelity and duration: "all-to-all at zero cost" is false.

Why heating matters. Electric-field noise near the electrodes heats the motional modes at ~1-100 quanta/s for a single ion, scaling roughly as d⁻⁴ with ion-electrode distance. Gate fidelity assumes the ion is near the motional ground state; once the mode heats you must recool (Doppler or sideband), costing hundreds of microseconds per recool and eating the duty cycle. Detect it with sideband spectroscopy: measure the mode spectrum and heating rate, then compare gate fidelity with and without a recool before each gate.

Trade-offs, and when the choice flips.

trapped ionsuperconducting
2Q gate time~10-600 µs (IonQ Aria ~600 µs published)~10-500 ns
2Q fidelity (vendor, 2024)~99.3-99.8%~99-99.9%
connectivityall-to-all within a chainnearest-neighbour (heavy-hex)
T2hyperfine >1 s~100-300 µs

Arithmetic: at 99.8% per two-qubit gate, a 100-gate circuit succeeds 0.998^100 ≈ 82% of the time; at 99.0% it's 0.99^100 ≈ 37%. A 0.8-point fidelity gap is a 2.2x gap in success probability at depth 100. So trapped ions win shallow, connectivity-heavy circuits (chemistry, dense-graph QAOA) and lose deep, gate-count-dominated ones where the ~1000x slower gate sets wall-clock.

Validation plan and failure modes.

  1. Compile the actual circuit to the native gate set and topology; report two-qubit count, depth, and wall-clock = Σ gate durations + transport + measurement/reset. If the vendor's connectivity number came from a best-pair benchmark, your pairs will be worse: run randomized benchmarking on the specific pairs used, not the headline figure.
  2. Measure the motional mode spectrum at the chain length you'll actually run. If the gate mode isn't resolved from its neighbours, expect crosstalk; a few points of two-qubit fidelity compounds over depth.
  3. Measure heating rate and recool cost. If heating × gate time approaches ~0.1 quanta, fidelity degrades.
  4. Time mid-circuit measurement and reset (hundreds of microseconds on trapped ions). If the algorithm needs many rounds, wall-clock explodes.
  5. Don't equate cross-vendor "two-qubit fidelity": RB, cycle benchmarking and interleaved RB measure different things, and SPAM inclusion differs. Check the definition before comparing.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Evaluate and validate a quantum-hardware decision for neutral atoms.

Answer

Core answer (first 90 seconds)

Before I validate anything I pin down three things: is this an analog Hamiltonian-simulation device or a gate-based one, what is the problem size in qubits, and what fidelity does the workload actually need. Those decide everything else, because the two modes fail differently.

For a neutral-atom machine the decision reduces to five checks: atom count and connectivity, blockade radius versus tweezer spacing, atom loss and rearrangement overhead, coherence versus circuit depth, and whether the result is post-selected. If any one fails, the platform is wrong for the job no matter how good the others look.

Mechanism

Atoms held in optical tweezers are excited to Rydberg states. Two atoms closer than the blockade radius r_b cannot both be excited, because the van der Waals shift C6/r^6 exceeds the drive. That blockade is the entangling interaction. r_b scales as (C6/Ω)^(1/6), so the Rabi frequency Ω sets the interaction range and the detuning Δ selects which pairs are active. Geometry is not cosmetic here: the atom arrangement is the interaction graph, so a spacing change rewrites the algorithm.

Trade-offs

Analog devices (QuEra's Aquila, 256 atoms, is the public example) evolve a fixed Hamiltonian for a programmed time. They are fast and low-overhead, but you cannot compile an arbitrary circuit, there is no error correction, and you read out expectation values over many shots. Gate-based machines add universality and mid-circuit measurement but need atom transport or zone shuttling, which costs loss and time. Pick analog when the problem maps to an Ising or XY Hamiltonian; pick gate-based when you need a specific circuit.

Failure modes and how to detect them

  • Missing atoms. Filling fraction is below 1. Detect by fluorescence imaging before the sequence, then rearrange or discard. The cost lands in post-selection.
  • Ideal geometry assumed. Position jitter is tens of nm; if r_b sits near the spacing, jitter changes the graph shot to shot.
  • Analog and gate model conflated. Benchmarking a gate fidelity on an analog device, or assuming gate-model error correction exists.
  • Experimental feature assumed. Mid-circuit measurement, atom shuttling, or a Rydberg level that is not in the released spec.
  • Shots filtered. Post-selecting on atom survival biases the expectation value you report.

Worked checks

Geometry arithmetic: with spacing a = 4 µm, the diagonal neighbour sits at a√2 = 5.66 µm. Set r_b = 5 µm and only nearest neighbours interact; set r_b = 6 µm and the diagonals switch on too: a different Hamiltonian from the same layout.

Post-selection arithmetic: at filling fraction 0.98 over 100 atoms, the chance every site is occupied is 0.98^100 ≈ 13%. At 0.995 it is ≈ 61%. That single number often decides whether a run is viable, and it is the first thing I would ask the vendor to quote.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Evaluate and validate a quantum-hardware decision for photonic systems.

Answer

Core answer (first 90 seconds). Assume the decision is: adopt vendor X's photonic system for workload W. The question is not whether photonic hardware is good: it is whether the demonstrated capability covers W. Three gates decide it, in order: encoding, loss budget, task class. Fail any one and the rest is irrelevant.

Gate 1: encoding. Ask what a qubit physically is. In dual-rail encoding one photon in two optical modes is one qubit, so a system quoted at 216 modes is at most 108 dual-rail qubits, and only if every mode is populated. Time-bin and polarization change the ratio again. Continuous-variable systems built on squeezed modes have no discrete qubit count at all. A mode count is a resource count, not a qubit count.

Gate 2: loss budget. Photons are not amplified, so loss is multiplicative and dominates the error budget. End-to-end survival for n photons at per-photon loss p is (1-p)^n; detector efficiency η multiplies into the same budget, giving ((1-p)·η)^n.

Python
# Python 3.12
import math

def survival(n, p, eta=1.0):
    """P(all n photons survive) with per-photon loss p and detection efficiency eta."""
    return ((1 - p) * eta) ** n

for n, p, eta in [(100, 0.01, 1.0), (100, 0.10, 1.0), (100, 0.01, 0.9)]:
    s = survival(n, p, eta)
    print(f"n={n} p={p:.2f} eta={eta:.2f}  survival={s:.3e}  shots/success={1/s:.2e}")

Trace: row 1 computes 0.99100 = 0.3660323412732292, and 1/0.3660323412732292 = 2.73205. Row 2 computes 0.9100 = 2.6561398887587544e-05, and 1/2.6561398887587544e-05 = 37648.6. Row 3 computes (0.99*0.9)100 = 0.891100 = 9.72e-06, and 1/9.72e-06 = 102880. Printed output:

n=100 p=0.01 eta=1.00  survival=3.660e-01  shots/success=2.73e+00
n=100 p=0.10 eta=1.00  survival=2.656e-05  shots/success=3.76e+04
n=100 p=0.01 eta=0.90  survival=9.720e-06  shots/success=1.03e+05

Read the third row: a 1% per-photon loss that already looks tolerable becomes ~10^5 shots per successful run once a 90% detector sits in the path. The numbers that decide the decision are per-component loss and detector efficiency, not mode count. Commercial SNSPDs are commonly quoted at 90%+ system detection efficiency with dark counts in the tens-to-hundreds per second.

Gate 3: task class. Gaussian boson sampling and boson sampling are sampling tasks: classically hard to simulate at scale, but not universal and unable to run Shor or Grover. Measurement-based/fusion architectures are universal in principle, but fusion is probabilistic, so they need a redundancy network to succeed. Ask which algorithm was actually run.

Validation table.

Failure modes and how to detect them.

  • Modes called qubits. Ask for the encoding; dual-rail halves the count, CV has none.
  • Loss hidden in post-selection. Ask for input photon number and post-selection rate. If success scales like (1-p)^n, loss is the limit, not the algorithm.
  • Sampling generalized to universal. Ask which algorithm ran; GBS is not universal.
  • Detector resolution. A single SNSPD is binary (click/no-click); a claim of counting 100 photons needs a photon-number-resolving detector or a multiplexed array.
  • Application mapping absent. Ask for the resource estimate for W; if none exists, the decision has no basis.

Decision rule. Adopt only if encoding is stated, the loss budget closes for W's photon number, and the demonstrated task is the task W needs. Otherwise the system is a sampling demonstrator, not a computer for W.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

How do physical coupling topologies like heavy-hex, square lattice, and all-to-all trade off SWAP gate overhead against spectator crosstalk in QPU architectures?

Answer

QPU topology design trades logical compilation overhead against physical error density. In sparse superconducting architectures like IBM's heavy-hex lattice, degree is strictly bounded to $d \le 3$. In dense architectures like trapped-ion systems (e.g., AQT on Amazon Braket), coupling approaches all-to-all ($d = N-1$).

SWAP Overhead vs. Crosstalk Trade-Off

  1. Compilation Overhead (SWAP Routing): When mapping an algorithm requiring an interaction between logical qubits $q_i$ and $q_j$ across graph distance $k = \text{dist}(u, v)$, the compiler inserts $2(k - 1)$ SWAP gates to route states adjacent and back (or $k - 1$ SWAP gates when tracking virtual permutations). Because each native SWAP typically decomposes into 3 CX (or ECR) gates plus single-qubit rotations, routing distance $k$ directly inflates two-qubit gate depth: $$\Delta \text{CX} = 3(k - 1)$$ In a 2D square lattice with diameter $\mathcal{O}(\sqrt{N})$, average routing distance scales as $\mathcal{O}(\sqrt{N})$. In heavy-hex, the diameter stretches further, worsening average SWAP routing depth by roughly 1.5x to 2x compared to a degree-4 square grid.

  2. Spectator Crosstalk & Frequency Collision: Fixed-coupling transmons suffer from unwanted $ZZ$ coupling and stray microwave drive spillover (classical and quantum spectator crosstalk). A qubit with degree $d$ has $d$ direct nearest neighbors and up to $d(d-1)$ next-nearest neighbors. To avoid parasitic two-qubit transitions (e.g., $\omega_i \approx \omega_j$ or $\omega_i - \eta_i \approx \omega_j$, where $\eta$ is anharmonicity $\approx -300\text{ MHz}$), the QPU needs collision-free frequency assignments within each neighbor cluster. Heavy-hex restricts maximum degree to 3 (alternating degree-2 bridge qubits and degree-3 vertex qubits), requiring only 2-to-3 distinct frequency bands to isolate neighbors and virtually eliminating degree-4 crowding.

ArchitectureDegree ($d$)Graph Diameter2Q Gate Overhead for Distant Pair ($k$)Crosstalk Vulnerability & Frequency Crowding
Trapped-Ion (e.g., AQT)$N - 1$ (all-to-all)$1$$0$ SWAP gates ($k=1$)Collective vibrational mode coupling; phonon motional dephasing, no spatial frequency crowding
Square Grid (2D Lattice)$4$$\mathcal{O}(\sqrt{N})$$3(k-1)$ CX gatesHigh frequency collision probability across 4 direct neighbors; elevated spectator $ZZ$ shift
Heavy-Hex (Superconducting)$2$ or $3$$\mathcal{O}(\sqrt{N})$ (stretched)$3(k-1)$ CX gates (longer path $k$)Minimized; degree $\le 3$ lowers spectator interactions and simplifies frequency allocation

Arithmetic Worked Example

Consider executing a CNOT between two qubits separated by Manhattan distance $k = 4$ in a QPU:

  • Heavy-hex or square layout: Routing requires 3 SWAP operations. Using the standard decomposition of 3 CX gates per SWAP, this inserts $3 \times 3 = 9$ auxiliary CX gates. If native two-qubit error is $\epsilon_{\text{2Q}} = 1.0%$, the routing overhead alone drops state fidelity from $0.99$ to $0.99^{10} \approx 0.904$.
  • All-to-all (trapped-ion): Directly executes 1 native MS gate ($k=1$, zero SWAP overhead), preserving fidelity at $0.99$, though at lower operational gate speed (tens of microseconds vs. sub-hundred nanoseconds in transmons).

Architects choose heavy-hex when physical gate error is dominated by multi-qubit crosstalk and frequency collision, deliberately shifting the burden to compiler layout optimization.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

How do physical coupling mechanisms dictate native two-qubit gate sets in superconducting transmons versus trapped ions, and how does this divergence impact circuit compilation?

Answer

Native gate sets are directly determined by the underlying physical interaction Hamiltonian of the hardware. In superconducting transmon architectures, coupling is typically mediated capacitively or via resonator buses, yielding static dispersive $ZZ$ coupling or driven microwave interactions like Cross-Resonance (CR), where driving control qubit $Q_1$ at the frequency of target qubit $Q_2$ produces a $ZX(\theta)$ interaction. Tunable-coupler transmon architectures utilize dynamic flux pulsing to bring transmons into resonance, directly realizing an exchange interaction that yields a controlled-phase ($CZ$) or an $iSWAP$ family gate.

In trapped-ion QPUs, physical qubits share collective motional modes in a crystal potential. Bichromatic laser or Raman fields driving sidebands near vibrational modes realize the Mølmer-Sørensen (MS) interaction, producing an entangling Hamiltonian of the form $XX(\theta) = \exp(-i \frac{\theta}{2} X \otimes X)$. Because motional sidebands couple globally to all ions in the potential well, trapped ions naturally yield all-to-all connectivity with native multi-qubit or parameterized two-qubit $XX(\theta)$ gates without needing intermediate SWAP operations.

Architectural Compilation Divergence

DimensionSuperconducting Transmons (Fixed/Tunable Coupler)Trapped Ions (e.g., AQT, IonQ)
Physical InteractionDriven microwave CR ($ZX$) or tunable flux coupling ($ZZ$ / exchange)Bichromatic optical/RF sideband driving ($XX$) via shared phonon bus
Native 2-Qubit GateCNOT (via echoed CR), $CZ$, or $\sqrt{iSWAP}$Mølmer-Sørensen $XX(\theta)$ or maximally entangling $MS = XX(\pi/2)$
ConnectivityPlanar nearest-neighbor (heavy-hex, square-lattice; degree 2-4)All-to-all within a linear chain or shuttled QCCD traps
2-Qubit Gate Duration20 ns to 400 ns10 $\mu$s to 200 $\mu$s
Routing PenaltyHeavy: non-local gates require chains of SWAPs ($3\times$ CNOT per SWAP)Minimal: zero routing SWAPs required inside an ion chain

Impact on Compiler Synthesis and Depth

Compiling an arbitrary two-qubit unitary $U \in SU(4)$ depends heavily on these native primitives:

  1. Local Gate Decomposition (Kassal/Khaneja-Glaser Cartan Decomposition): Any $SU(4)$ gate can be decomposed into at most three native entangling operations containing non-zero canonical coordinates $(c_1, c_2, c_3)$ plus single-qubit rotations. Compiling a standard algorithmic unitary (e.g., CNOT or controlled-$R_z(\theta)$):

    • To Transmons ($CZ$/CR): A single CNOT maps directly to echoed CR + single-qubit Euler rotations or $CZ$ flanked by target Hadamards ($H_2 CZ H_2$).
    • To Trapped Ions ($XX$): A CNOT requires one fully-entangling $XX(\pi/2)$ gate wrapped by local rotations: $$CNOT_{1 \to 2} = R_{z,1}(-\pi/2) R_{x,2}(-\pi/2) R_{z,2}(-\pi/2) \cdot XX(\pi/2) \cdot R_{y,1}(-\pi/2) R_{x,2}(\pi/2)$$
    • For parameterized gates like fermionic simulation or VQE ansatzes ($e^{-i \frac{\theta}{2} Z \otimes Z}$), trapped ions compile continuously parameterized $XX(\theta)$ directly in one shot, whereas transmon architectures restricted to discrete calibrated CNOTs or $CZ$ require two two-qubit gates and single-qubit rotations.
  2. Topology and SWAP Insertion: For an $N$-qubit algorithm running on an IBM heavy-hex lattice, interacting two distant qubits separated by graph distance $d$ incurs $3(d - 1)$ CNOT gates for SWAP routing. On trapped ions, graph distance is effectively $d = 1$. However, because trapped-ion gates are 100x to 1000x slower ($~50,\mu\text{s}$ vs $~50,\text{ns}$), circuit depth is bounded by decoherence ($T_2$) time: superconducting compiles trade SWAP overhead for gate speed, while ion traps trade execution speed for topology-free synthesis.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-8

How do quantum architects balance coherence times (T1, T2) against gate execution speed when engineering control lines and qubit coupling strengths?

Answer

What a strong candidate says first

Coherence and gate speed aren't two dials you balance against each other. They're two terms in one error budget, and the coupling strength moves both:

$$\varepsilon_{total}(t_{gate}) \approx t_{gate}/T_2 + \varepsilon_{control}(t_{gate})$$

The decoherence term falls as the gate gets shorter. The control term rises, because a shorter gate needs more drive amplitude or stronger coupling, and that brings leakage, crosstalk and Purcell decay with it. You pick the minimum, which is rarely the fastest gate the hardware can produce.

The rule that decides it: with $T_2 = 100\ \mu\text{s}$, a 500 ns gate costs $5\times10^{-3}$ of decoherence error and a 20 ns gate costs $2\times10^{-4}$. If your control error at 500 ns is $10^{-3}$, going faster is a clear win. If it's already $10^{-4}$, the speedup buys nothing and the coupling budget is better spent on crosstalk. Assume a fixed frequency plan and a fixed platform; the numbers below are transmon-shaped.

Coupling sets both sides of the trade

Resonant exchange gates run at $t_{gate} \propto 1/g$. Driven dispersive gates (cross-resonance) run at a rate $\propto \Omega g/\Delta$, so you can buy speed with drive amplitude $\Omega$ instead of coupling, which is why fixed-frequency parts push $\Omega$ and pay in leakage and drive-line crosstalk rather than in Purcell decay.

Purcell decay into the control line is $\Gamma = (g/\Delta)^2 \kappa$. Take $g/2\pi = 100\ \text{MHz}$, $\Delta/2\pi = 1\ \text{GHz}$, $\kappa/2\pi = 1\ \text{MHz}$: $\Gamma/2\pi = 10\ \text{kHz}$, so $T_{1,\text{Purcell}} = 100\ \mu\text{s}$. Double $g$ to halve the gate time and $\Gamma/2\pi = 40\ \text{kHz}$, $T_1 = 25\ \mu\text{s}$. The speedup costs 4× in $T_1$: quadratic, not linear. That is the whole reason Purcell filters exist.

Static $ZZ$ scales as $\zeta \propto g^2/\Delta$. At $g/2\pi \approx 20\ \text{MHz}$ and $\Delta/2\pi \approx 1\ \text{GHz}$, fixed-coupling transmons show $\zeta/2\pi$ in the 100 kHz range. A spectator whose neighbour is in superposition dephases at that rate: $T_2^* \approx 1/\zeta \approx 1.6\ \mu\text{s}$, two orders below the intrinsic $T_2$. Tunable couplers cancel the direct and mediated paths and push $\zeta$ below ~10 kHz.

Where the optimum sits

Model the control term as $c/t$ (leakage and adiabatic error for a smooth pulse fall roughly as $1/t$):

Python
# Error per two-qubit gate vs gate time, transmon-shaped numbers.
T2 = 100e3   # ns
c  = 0.02    # ns; eps_ctrl = 1e-3 at t = 20 ns
for t in (5, 20, 45, 64, 100, 300):
    print(f"t={t:4d} ns  eps_coh={t/T2:.2e}  eps_ctrl={c/t:.2e}  total={t/T2 + c/t:.2e}")
t=   5 ns  eps_coh=5.00e-05  eps_ctrl=4.00e-03  total=4.05e-03
t=  20 ns  eps_coh=2.00e-04  eps_ctrl=1.00e-03  total=1.20e-03
t=  45 ns  eps_coh=4.50e-04  eps_ctrl=4.44e-04  total=8.94e-04
t=  64 ns  eps_coh=6.40e-04  eps_ctrl=3.13e-04  total=9.53e-04
t= 100 ns  eps_coh=1.00e-03  eps_ctrl=2.00e-04  total=1.20e-03
t= 300 ns  eps_coh=3.00e-03  eps_ctrl=6.67e-05  total=3.07e-03

The minimum is at $t^* = \sqrt{c,T_2} = 45\ \text{ns}$, $\varepsilon^* = 2\sqrt{c/T_2} = 8.9\times10^{-4}$. Note the shape: 20 ns and 100 ns give the same total error, $1.2\times10^{-3}$. Pushing to 5 ns is 4.5× worse than the optimum. $c$ is fitted per device, not a law, but the U-shape is why "make the gate as fast as possible" is the wrong instruction.

How the platforms differ

Platform$T_1$ / $T_2$2Q gate time$T_2/t_{gate}$What actually limits the trade
Superconducting transmon$T_1$ 100–300 µs, $T_2^*$ 50–200 µs20–60 ns (tunable coupler); ~500 ns (fixed-frequency cross-resonance)$10^3$–$10^4$$g/2\pi$ 50–100 MHz; Purcell ($\propto g^2$) and $ZZ$ ($\propto g^2/\Delta$) both rise with $g$
Trapped ion (hyperfine)$T_2$ 1–10 s with dynamical decoupling; $T_1$ of order hours50–500 µs (Mølmer–Sørensen)$10^4$–$10^5$Speed set by motional-mode frequency and laser power; the limit is laser phase noise and motional heating, not bath coupling
Neutral atom (Rydberg)Ground state 1–10 s; Rydberg ~100 µs at $n \approx 70$0.2–2 µs$10^2$–$10^3$ during the gate$C_6/R^6$ interaction switched on only during the gate; Rydberg lifetime is the transient cost

Failure modes and how you see them

  • Purcell-limited $T_1$. $T_1$ falls when you raise $g$ or widen the drive-line bandwidth, and varies across the chip with port routing. Measure inversion recovery as a function of coupler flux and drive attenuation, and check the slope against the $(g/\Delta)^2\kappa$ prediction.
  • Static $ZZ$. Ramsey $T_2^*$ on a spectator collapses while echo $T_2$ stays high: the shift is slow and refocusable. Measure the Ramsey fringe frequency with the neighbour in $|0\rangle$ versus $|1\rangle$; the difference is $\zeta$. If echo $T_2$ also drops, the noise is fast (flux noise, photon shot noise), not $ZZ$.
  • Leakage to $|2\rangle$. Fast gates with large $\Omega$; total error grows faster than $1/t$. Measure $|2\rangle$ population after the gate, or run RB with a leakage-sensitive variant.
  • Drive-line crosstalk. Simultaneous RB on neighbouring pairs is worse than isolated RB. Compare RB with neighbours idling against RB with neighbours driven.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

What are the architectural trade-offs between programmable analog quantum simulators, such as Rydberg atom arrays, and universal gate-model processors in terms of scalability, calibration overhead, and noise resilience?

Answer

Bottom line. These are not two versions of the same machine. An analog Rydberg array trades programmability for scale and cheap calibration; a gate-model QPU trades scale and calibration cost for universality and a real path to error correction. If your problem is a many-body Hamiltonian that maps onto the native interaction, the analog machine wins on every axis that matters. If you need arbitrary circuits or eventual fault tolerance, only the gate model gets there.

Assumptions I'd state up front. Current-generation hardware: a few hundred atoms versus tens to low hundreds of physical qubits. NISQ regime, no logical qubits in production. Comparing at equal wall-clock, not equal qubit count.

Scalability and connectivity. In a Rydberg array the atoms sit in optical tweezers and the interaction is the van der Waals potential, so connectivity is geometric: every pair inside the blockade radius couples, and you redraw the graph by moving tweezers. The Hamiltonian is roughly

$$H(t) = \frac{\hbar\Omega(t)}{2}\sum_i \sigma_x^{(i)} - \hbar\Delta(t)\sum_i n_i + \sum_{i<j} \frac{C_6}{r_{ij}^6} n_i n_j$$

Scaling means adding trap sites, not adding control lines. That's why 256 sites is routine on Aquila and the binding constraint is laser power and trap filling, not wiring.

A superconducting gate QPU routes microwave lines to each qubit inside a dilution fridge and couples only nearest neighbours on a fixed lattice, so a non-local two-qubit gate costs SWAPs: O(N) routing overhead for a random interaction graph. Trapped ions get all-to-all coupling through shared motional modes, but scaling past a few tens of qubits needs shuttling (QCCD), which is its own engineering problem.

Calibration. Analog control is global: detuning Δ(t), Rabi frequency Ω(t) and phase φ(t) applied across the whole register, plus per-site detuning. You calibrate beam homogeneity, trap positions and filling once; the pulse envelope is O(1) parameters. Gate model: every qubit needs its frequency and DRAG parameters tuned, and every coupling edge needs its own cross-resonance or Mølmer–Sørensen calibration. That's O(E) edge calibrations that drift, so tune-up jobs run continuously.

Noise. Analog errors are continuous: laser phase noise, intensity drift, atom loss, Rydberg decay with T1 in the tens to ~100 µs. There is no analog QEC; error accumulates along the trajectory. But for ground-state sampling and adiabatic optimization, high-frequency dephasing averages out and you can still read a useful order parameter. Gate-model errors digitize into Pauli channels and leakage. Two-qubit infidelity runs ~1e-3 on ions to ~1e-2 on transmons, and that caps depth: at 1e-2 per entangling gate, 100 layers succeed with probability 0.99^100 ≈ 0.37; at 1e-3, 0.999^100 ≈ 0.90. That arithmetic is the whole reason NISQ circuits stay shallow. The payoff is that gate errors are correctable in principle: surface codes, at a physical-to-logical overhead in the hundreds to thousands depending on code distance and hardware error rate.

Failure modes worth naming. Analog: a trap vacancy silently changes the interaction graph, so you image the array before the run; drift in Ω shows up as a systematic shift in the measured order parameter across repeats. Gate: crosstalk and leakage out of the computational subspace show up as correlated errors that violate the Pauli assumption the decoder makes.

When to pick which. Analog for lattice-model simulation, spin glasses, or maximum independent set: anything that is the native Hamiltonian. Gate model for algorithms with non-native structure, and for anything you intend to run fault-tolerantly later.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

How do hardware architectural constraints govern minor embedding, chain strength, and control precision in quantum annealers versus gate-based architectures?

Answer

The 90-second version

Both machines have a fixed physical coupling graph, and both pay when the problem graph doesn't fit it. The difference is where the cost lands. An annealer pays in qubits: one logical variable becomes a chain of physical qubits held together by a strong ferromagnetic coupling, and that chain can break. A gate machine pays in depth: one physical qubit per logical qubit, with SWAPs moving information around, so the cost shows up as accumulated two-qubit gate error. Chain strength and pulse calibration are the knobs that decide whether either cost stays tolerable.

Assumptions: superconducting hardware, no error correction on the gate side, and a problem graph denser than the hardware graph.

Annealer: embedding and chain strength

D-Wave's 2000Q runs Chimera: 8 qubits per unit cell, each coupled to 6 others. Advantage runs Pegasus, degree 15; Advantage2 runs Zephyr, degree 20. A clique K_N fits none of them, so each logical variable becomes a chain. The standard Chimera construction embeds K_{4M+1} in an M×M cell array using all 8M² qubits, so K_100 needs about 5,000 physical qubits with chains of length ~25. That is the quadratic overhead: physical qubits grow as N²/2.

Chain strength is the tension. Take a 3-qubit chain with internal couplings J_c = −1, its end qubit coupled to a neighbour at J_ext. Flipping the end qubit costs 2|J_c| (it breaks one chain coupler) and gains 2|J_ext|, so the chain breaks when |J_ext| > |J_c|. A middle qubit has two chain couplers and needs |J_ext| > 2|J_c| — the ends are the weak points. Too low a chain strength and you get exactly that: discordant spins, resolved by majority vote or discarded. Too high and you compress the problem's dynamic range: the sampler rescales your couplings to fit the device's J range, so a problem whose couplings span 100× loses the small ones to the DAC floor, and the gaps separating ground state from first excited state shrink toward the noise floor. D-Wave's uniform_torque_compensation default sets J_c = 1.414 · sqrt(mean(J²)) over the problem couplers, which for a uniform problem of magnitude J sits above the end-qubit threshold. The practical check is to sweep it and watch chain_break_fraction, reported per sample in the result's info.

Gate-based: routing and calibration

Heavy-hex gives each qubit at most 3 couplers, so a non-local two-qubit gate needs a SWAP network. On a 2D lattice a random non-local gate costs O(√N) SWAPs, about 10 on a 100-qubit device, and each SWAP is 3 CX gates, so 30 CX per non-local gate. At 1% CX error, a circuit with 1,000 two-qubit gates has at least one error with probability 1 − 0.99^1000 ≈ 0.99996. The binding constraint is gate count and depth, not qubit count.

Control precision differs in kind. Annealers set h and J through finite-resolution DACs, plus integrated control errors: small, systematic per-qubit and per-coupler offsets D-Wave measures and publishes per chip. Because they are systematic, they shift the landscape deterministically: the ground state you programmed becomes an excited state of the real device. D-Wave exposes flux_biases to compensate. Gate machines translate parameters into pulse duration, frequency and envelope; imprecision shows up as coherent under/over-rotation or phase drift, and it is correctable: DRAG pulses for leakage, virtual-Z phase shifts that cost no pulse, composite pulses, dynamical decoupling, or QEC.

AnnealerGate-based
Cost of a non-fitting graphqubits (chains), ~N²/2depth (SWAPs), O(√N) per gate
Hardware degree6 (Chimera), 15 (Pegasus), 20 (Zephyr)3 (heavy-hex)
Failure modechain breakaccumulated 2q error
Precision knobchain strength, ICE (flux_biases)pulse calibration

What would change the decision

If the problem graph is sparse and fits the hardware graph, embedding is trivial and the chain-strength problem disappears. If it is dense, the annealer's quadratic qubit overhead and chain breakage usually lose to a gate machine's depth overhead, unless you can sparsify the problem first. And if the gate machine has error correction, depth becomes a threshold question rather than an error-accumulation question, which flips the comparison.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-11

Evaluate and validate a quantum-hardware decision for gate fidelity.

Answer

Core answer (first 90 seconds). The decision is usually "do we commit this workload to this backend or vendor." Assume the workload is fixed (depth, width, connectivity, and how many gates run in parallel) and the run window is hours to days. My answer: reject any single scalar. Validate in three steps. First, reproduce the vendor's headline number on the same qubits with the same benchmark. Second, re-measure with a benchmark whose structure matches the workload. Third, run a held-out application circuit and compare its measured fidelity against the error-budget prediction. The decision passes only if the prediction holds within its uncertainty and the specific qubit pairs the workload uses are inside budget. A median over the whole device is not evidence about the pairs you will actually run on.

Why one number fails. Randomized benchmarking twirls the noise channel: random Clifford sequences turn coherent errors into an effective depolarizing rate. A backend with a 0.1% coherent Z-rotation per gate and one with 0.1% stochastic depolarizing report the same RB number but behave differently in an algorithm, because coherent errors add in amplitude, roughly linear in gate count, while stochastic errors compose as a product, exponential in gate count. RB also assumes gate-independent, time-independent, Markovian noise, and is blind to leakage unless you run leakage RB.

benchmarkmeasuresblind touse when
RBaverage error per Clifford, 1–2Qcoherent errors (twirled away), crosstalk, leakagebaseline and drift tracking
Interleaved RBerror of one specific gategate-dependent noise, so it gives bounds, not a pointcomparing two gate implementations
XEBfidelity of random circuitslittle: sensitive to coherent and correlated errorfull-stack fidelity and extrapolation
Cycle benchmarkingerror per cycle with parallel gates—crosstalk and simultaneous-operation cost
Mirror / volumetric circuitsapplication-shaped fidelity—held-out validation and cheap canaries

Worked arithmetic (illustrative). A 20-qubit, 20-layer circuit on a heavy-hex device carries roughly 200 two-qubit gates. At a 0.3% median two-qubit error, predicted fidelity ≈ exp(−200 × 0.003) = exp(−0.6) ≈ 0.55. At a 1.5% worst-pair error, exp(−200 × 0.015) = exp(−3) ≈ 0.05. Same device, same headline, an order of magnitude apart depending on which pairs the compiler routes onto. That gap is the decision.

Failure modes, detection, cost.

  • Coherent error: RB says 0.1%, XEB or a mirror circuit on the same qubits says 1%. Detection is the gap between RB-predicted and XEB-measured fidelity. Cost: algorithm fidelity collapses faster than the 1-p scaling you budgeted.
  • Crosstalk: isolated RB is clean, simultaneous RB or cycle benchmarking with neighbors driven is not. Detection is error inflation when adjacent qubits are active versus idle. Cost: parallel layers are the whole point of the workload.
  • Leakage: RB is insensitive; measure |2⟩ population after gates or run leakage RB. Cost: leaked population corrupts later gates and measurement.
  • Calibration drift: benchmark at t0, run at t0+hours. Detection is a fixed mirror circuit as a canary every few minutes. Cost: silent fidelity decay mid-run.
  • Uncertainty: RB intervals are statistical only. Detection is disagreement between interleaved and direct RB, which exposes systematic bias. Cost: you defend a number that was never the right one.

Verdict shape. State the decision, the structure-matched evidence, the residual risk on the pairs actually used, and the tripwire that reverses it: for example, canary fidelity dropping below the budgeted threshold mid-run. Pass, pass-with-canary, or fail; never "fidelity is high."

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Evaluate and validate a quantum-hardware decision for readout.

Answer

Assumptions first. I'll take the decision to be: for a fixed-frequency transmon array with dispersive readout, do we add a Josephson parametric amplifier (JPA/JTWPA) to the readout chain to raise single-shot fidelity, or keep the HEMT and spend the effort on readout-error mitigation in software? If the decision is a different one (multiplexed versus individual readout, say) the same validation plan applies; only the weights on the criteria change.

Core answer. The amplifier is worth it only if readout is noise-limited and the qubit's T1 is long enough that you can integrate long enough to use the extra SNR. Dispersive readout maps the qubit state onto a shift of the readout resonator frequency by ±χ; you drive the resonator and integrate the reflected signal for a time τ. SNR grows as √τ until T1 decay during the measurement starts flipping |1⟩ to |0⟩, which caps the useful τ. A HEMT adds on the order of ten noise photons to the chain; a parametric amplifier approaches the quantum limit of half a photon, so it buys SNR without buying integration time. If you are already T1-limited, the amplifier does nothing for fidelity and you should not buy it.

Arithmetic (illustrative). Model the two readout distributions as Gaussians separated by d with per-quadrature noise σ. A midpoint threshold gives error Q(d/2σ), where Q is the Gaussian tail. To hit 99.9% fidelity you need d/2σ ≈ 3.09; to hit 99.99% you need ≈ 3.72. That is 20% more SNR, or 45% more integration time if you are noise-limited (1.204² ≈ 1.45). So the honest comparison is parametric amplifier (capital plus calibration) versus 45% longer readout (dead time, more T1 exposure). Pick the amplifier when readout time is the bottleneck; pick longer integration when T1 is long and the schedule is not.

Validation plan. Measure the full 2×2 assignment matrix per qubit, not a single fidelity number, and do it twice: qubits read in isolation, and all qubits read simultaneously. Then sweep readout power and integration time.

failure modemechanismdetectioncost if missed
asymmetryT1 decay during τ makes P(1|0) > P(0|1)full 2×2 matrix, not the averagea single threshold biases the |1⟩ population low
correlated errorssimultaneous multiplexed readout crosstalkisolated vs. simultaneous fidelity per qubitbreaks the independent-error assumption in mitigation and in code thresholds
stale thresholdresonator drift moves the distributionsre-measure the matrix on a schedule, track driftthreshold sits off-centre, error grows silently
MISThigh readout power drives state transitionsfidelity vs. readout power is non-monotonicyou tune into a worse operating point
mitigation reported as raw fidelitymatrix inversion amplifies correlated errors, can give negative probabilitiesreport raw and mitigated side by sideyou ship a number you cannot defend

What I'd say in the room. The decision is not "which amplifier": it is "is readout noise-limited or T1-limited." Answer that with the assignment matrix and a power/time sweep, and the hardware choice falls out.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-13

Evaluate and validate a quantum-hardware decision for leakage.

Answer

What I'd say first

"Evaluate and validate" here means: given a proposed change (a new coupler, a faster two-qubit gate, a different reset) decide whether its leakage is low enough to run inside a QEC workload, and prove it with a measurement that can actually see leakage. Assumptions: fixed-frequency transmons, surface-code QEC, leakage defined as population outside the computational subspace {|0>, |1>}, i.e. in |2> and above.

The verdict rests on four questions, in order: how much leakage per gate and per round; is it coherent and therefore reversible, or incoherent; does the reset and measurement remove it; does it correlate across qubits. If leakage is not removed before it can spread, the answer is no, however good the gate fidelity looks.

Why standard RB cannot answer this

A transmon is a weakly anharmonic oscillator: the |1>→|2> transition sits roughly 200–330 MHz below |0>→|1>. Fast gates, DRAG miscalibration, or a frequency collision push population into |2>. That is a non-unitary map out of the subspace, not a Pauli error. Randomized benchmarking twirls over Cliffords that act on the computational subspace, so leaked population is not returned by the twirl: it appears as an inflated depolarizing rate or is missed entirely. You need a protocol that measures the leakage subspace directly: leakage RB (Wood & Gambetta, PRA 97, 032306) or three-level readout that distinguishes |2>.

Criteria (thresholds below are hypothetical, for a d=5 surface code)

criterionhow to measurepassfail
leakage per 2q gateleakage RB / three-level readout≤ 1e-4≥ 1e-3
coherenceleakage after X vs after X·X† (echo)reversiblegrows with depth
resetP(|2>) after reset< 1e-4survives reset
correlationneighbor error conditioned on leaked partneruncorrelatedcorrelated

Worked arithmetic (hypothetical figures)

Leakage per CZ is L = 5e-4. Each data qubit participates in 4 CZs per round. Over 25 rounds: 25 × 4 × 5e-4 = 0.05 expected leakage events per qubit; across 25 data qubits that is ≈ 1.25 events per logical cycle. A leaked qubit drives its 4 neighbors through the same coupler, so one event can deposit correlated errors on up to 4 qubits: above the d=5 code's t = (d−1)/2 = 2 correction budget. Leakage therefore has to be removed each round, not averaged out.

Alternatives and what they cost

  • Leakage-removal unit: couple the leaked qubit to a lossy resonator to drive |2>→|0>. Removes leakage before it spreads; costs extra hardware and hundreds of ns per round.
  • Gate-level: slower gates, DRAG with a leakage-derivative term, optimal control. No extra hardware; costs gate time and calibration effort.
  • Post-selection: discard shots where |2> was measured. Cheap; biases results and shrinks the sample, and does not scale.
  • Leakage-aware decoding: correlated matching. Software only; models the leakage rather than removing it.

Failure modes and how to detect them

  • Reset assumed perfect: reset that only addresses |0>, |1> leaves |2> population. Detect by measuring P(|2>) after reset.
  • Tomography projecting away |2>: a two-level fit silently discards leaked population. Detect by comparing two-level and three-level fit residuals.
  • Two-level simulator: a simulator without |2> cannot reproduce leakage-induced correlated errors. Detect by cross-checking against hardware leakage RB.
  • Correlated propagation: leakage on one qubit errors its neighbors. Detect by measuring neighbor error rate conditioned on a leaked partner.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Evaluate and validate a quantum-hardware decision for calibration drift.

Answer

Core answer

The decision isn't "is this device calibrated?": it's "is the calibration snapshot my circuit was compiled against the same one it will execute under, and is the drift between them small against my error budget?" Three checks, in order: snapshot identity, drift magnitude, witness run.

Assumptions: a superconducting transmon device behind a queue, Qiskit 1.x with a BackendV2 target, a circuit with tens of two-qubit gates, and a success probability you can state as a number.

Why drift breaks the decision

Transpilation is a bet on the target's numbers. The router picks a qubit mapping and the scheduler picks durations using backend.target (per-qubit T1/T2/frequency, per-gate error and duration) captured at transpile time. Execution happens later, against whatever the device is then. Two-qubit error is set by the pulse calibration (amplitude, DRAG, flux pulse) and by the qubits' frequencies and coherence at execution. A frequency shift moves the drive off-resonance, and that is a coherent error: it does not average out over repetitions, it accumulates.

Arithmetic

40 CZ gates at the target's 0.8% error: 0.992^40 ≈ 0.73. If drift pushes the worst qubit the router chose to 3%: 0.97^40 ≈ 0.30. Same circuit, same code, 43 points of success probability lost to a stale snapshot. That number decides the question, not "did the device drift" but "did drift move my predicted success past my tolerance."

Decision table

signalthresholdaction
snapshot age at executionunder the refresh intervalproceed
at or over itre-transpile against a fresh target (seconds)
worst chosen 2Q error vs. medianover 2×re-route; don't recalibrate
drift vs. RB error barinside the baraccept, report the drift
witness fidelity vs. predicted5 points lowstop, recalibrate, re-run

Validation witness

Before the main job, run a small mirror circuit on exactly the qubits the router chose and compare measured success to the target's prediction. Capture the snapshot explicitly:

Python
# Qiskit 1.x, BackendV2
backend = QiskitRuntimeService().backend("<name>")
props = backend.target["cz"]              # {qargs: InstructionProperties}
worst = max(props.items(), key=lambda kv: kv[1].error or 0)
print(worst)                             # (qargs, error) at transpile time

Re-read the same expression after the job returns and diff. If you cannot obtain an execution-time target, treat the submit-to-start gap as the uncertainty.

Failure modes

  1. Stale snapshot: transpiled at T0, executed at T0+6h. Detection: diff the target at submit vs. execution. Symptom: measured success well below the transpiler's predicted success.
  2. Queue delay: the job waits past a refresh. Detection: submit-to-start gap against the refresh interval. Cost: a re-transpile is seconds; a re-run is the whole queue wait again.
  3. Readout threshold drift: the discriminator was calibrated against a drifted amplifier gain. Detection: state-prep |0>/|1> assignment fidelity. Symptom: 1–2% readout error becomes 5%+, swamping the gate error you are trying to measure.
  4. Coherent drift invisible to RB: randomized benchmarking twirls a coherent Z-rotation into an average error, so a frequency shift can look small in RB and still hurt a structured circuit. Detection: Ramsey/echo on the idle qubit, or a repeated-identity circuit.

Trade-offs

Re-transpile: seconds, no device time, fixes routing but not pulse calibration. Recalibrate: minutes to hours of device time, and it invalidates the snapshot for every job already queued behind you. Accept and report: free, and correct when drift sits inside the RB error bar. A few thousand shots gives roughly ±0.1–0.2% on a two-qubit RB estimate, so chasing a 0.1% move is chasing noise. Don't recalibrate when the drift is inside that bar, or when your circuit's dominant error is readout rather than gates.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Evaluate and validate a quantum-hardware decision for EPLG.

Answer

The decision. Choosing between two superconducting backends for a workload whose dominant cost is a deep layered two-qubit circuit: say 100 qubits wide, ~100 layers of two-qubit gates on nearest-neighbour connectivity. The candidate metric is EPLG, error per layered gate.

Core answer. EPLG is the right first-order filter for this decision and the wrong thing to decide on alone. It is defined as the average error per layered gate over a chain of 100 qubits and 100 layers, where each layer applies two-qubit gates to alternating pairs so every qubit sits in exactly one gate per layer. That structure is what makes it useful: it exercises parallel gate execution, so it captures crosstalk, frequency collisions and spectator errors that isolated two-qubit randomized benchmarking on a single pair cannot see. But it is an average over one topology and one depth, so it predicts your workload only if your workload looks like that chain.

Why the number decides it. If errors were independent, a depth-100 layered circuit succeeds with probability ≈ (1 − EPLG)^100. IBM introduced EPLG in November 2021 and reported about 2.5% for the 127-qubit Eagle processor. 0.975^100 ≈ 0.08: roughly 8% success. A backend at 0.6% EPLG (illustrative) gives 0.994^100 ≈ 0.55. Same width, same depth, a 7× difference in success probability. That is the size of the decision EPLG is meant to inform, and it is why an isolated-pair number is not a substitute: a 0.3% two-qubit error would predict 0.997^100 ≈ 74% and be wrong by an order of magnitude.

Validation protocol. Don't trust the headline.

  1. Re-measure on the workload's own connectivity and depth: run the actual circuit or a mirror circuit and compare measured success to the (1 − EPLG)^depth prediction. A large gap means the benchmark does not represent you.
  2. Check the calibration timestamp. EPLG drifts with recalibration, so a value from last week may not hold.
  3. Pull the per-pair error map. EPLG is an average; a few bad pairs can dominate a workload that routes through them.
  4. Normalize before comparing vendors. Chain length, layer count, gate set and whether single-qubit gates are included differ between definitions, so headline numbers are not comparable across vendors.

When not to use EPLG. Shallow workloads (depth ≲ 10): the 100-layer chain over-penalizes, and Quantum Volume or a direct workload benchmark is more relevant. Non-chain topologies: if the workload needs a 2D grid or all-to-all, the chain benchmark omits the couplers that matter. Workloads dominated by single-qubit gates, measurement or mid-circuit feedforward: EPLG covers none of those. Cycle benchmarking gives per-layer granularity, CLOPS gives speed.

metriccapturesblind spot
EPLGparallel layered two-qubit error on a 100-qubit chainsingle-qubit gates, measurement, non-chain topology, drift
isolated 2Q RBone pair's gate errorcrosstalk, spectators
Quantum Volumefull-stack square circuitsone number, no layered-gate isolation
CLOPSthroughputerror

Failure modes and detection. Treating EPLG as universal → caught by the mirror-circuit gap. Chain-size or topology mismatch → caught by re-running on the workload's connectivity. Stale value → caught by the calibration timestamp. Averaging hiding bad pairs → caught by the per-pair error map. Unnormalized vendor comparison → caught by reading the benchmark definition before quoting a number.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Evaluate and validate a quantum-hardware decision for metric comparability.

Answer

Core answer. Don't compare headline numbers. Two vendors can both print "99.9% two-qubit fidelity" or "QV 2^20" and mean different things, because each metric is a protocol with a gate set, a circuit shape, a confidence rule, and a post-processing step baked in. Before any decision, get five things in writing: the metric definition, the protocol (gate set, compilation, shots), the workload shape, the confidence interval, and the resource boundary (qubit count, connectivity, calibration timestamp). Then reproduce the number on your own circuit. The metric that decides is the one whose circuit shape matches yours.

Why the numbers move.

Two-qubit fidelity. Interleaved randomized benchmarking reports error per a named gate (CZ, say). Cross-entropy benchmarking reports per-cycle error over a random cycle. Cycle benchmarking reports per-gate error in a Pauli frame. A device with a fast, low-error CZ can look worse under XEB if its single-qubit layer is slow, and a "99.9%" from one protocol is not the other. Gate set matters too: √iSWAP, CZ and iSWAP have different durations and error rates.

Quantum Volume. V_Q = 2^n, where n is the largest width for which a random square circuit (width n, depth n) of SU(4) gates compiled to native gates gives heavy-output probability above 2/3 at 97.5% one-sided confidence. Two levers move it: compilation overhead (poor connectivity needs more SWAPs, lowering HOP) and post-selection (discarding leakage shots raises HOP). A QV measured with post-selection is not comparable to one without.

CLOPS. CLOPS = (M × K × S) / t, with M unique parameterizations, K layers, S shots, t seconds. M, K and S are chosen by the vendor; a small M with many layers inflates the number. It measures control throughput, not algorithmic quality.

#AQ and Q-Score. Vendor-defined benchmark sets. #AQ is the largest n for which the vendor's circuit set runs; Q-Score is a weighted application mix. Both are useful only if their circuit set resembles yours.

metricmeasureshidesdecides when
QV 2^nsquare-circuit HOP at 97.5% CIconnectivity, post-selection, gate setworkload is square-ish and gate-limited
CLOPSparameterized-layer throughputfidelity, algorithmic qualityvariational loop is the bottleneck
#AQvendor benchmark set widthwhich circuits, what fidelity flooryour circuit set matches theirs
Q-Scoreweighted app mixweights, per-app scoresyour app mix matches
interleaved RBerror per named gatesingle-qubit layer, crosstalkyou're gate-limited on that gate

Worked check (illustrative figures). Vendor A: QV 2^20, CLOPS 2,000. Vendor B: #AQ 25, CLOPS 5,000. Your workload: 30-qubit QAOA, depth 50, roughly 200 two-qubit gates per layer. Neither headline answers it. Reproduce: compile the ansatz to each native gate set, count two-qubit gates after routing (A: 1,400; B: 900, better connectivity), run 10,000 shots, measure the fraction of shots whose bitstring lands in the expected low-energy set. Suppose A gives 0.31 and B gives 0.44. B wins on your workload even though A wins on QV. That is the decision.

Failure modes and detection.

  • Post-selection: ask for raw shot counts and the predicate, then recompute HOP without it. Cost: a device that passes only with post-selection will fail your un-post-selected run.
  • Version mixing: pin the calibration timestamp. A metric from last week's calibration does not describe today's device; detect by re-running the same day.
  • Simulated components: ask whether any part of the circuit is classically simulated (tensor-network or statevector). Detect by requesting the raw circuit and shot data.
  • Different error models: re-run the identical circuit on both devices. If the gap exceeds the confidence intervals, the models differ.

When the choice flips. If the bottleneck is the classical-quantum loop with many parameter updates, CLOPS decides. If it is a single deep circuit, gate fidelity and connectivity decide. If you need error correction, physical-to-logical overhead decides, and none of these headline metrics speak to it.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

Evaluate and validate a quantum-hardware decision for benchmark design.

Answer

Core answer (first 90 seconds).

The decision is: does this benchmark result justify picking device A over device B for a specific workload? Validation means the benchmark predicts that workload, not that it ranks devices in the abstract.

State assumptions up front: gate-based NISQ hardware; a target workload with a known circuit shape (width, depth, two-qubit gate count, connectivity, observable); two or three candidate devices. If the workload is unknown, no benchmark can validate the decision: say that and stop.

Then answer directly: pick the metric whose circuit ensemble matches the workload's shape, preregister the circuits and the decoding, randomize execution order across devices and days, and report raw and post-selected numbers separately. Validate by predicting a held-out workload's fidelity before running it, then checking the prediction.

Alternatives and when each decides.

metricwhat it measuresdecides whenblind to
Quantum Volume (IBM, Cross et al. 2019)largest square circuit (width = depth) with heavy-output probability > 2/3 at 97.5% confidenceworkload is roughly square and randomdeep narrow, structured circuits
CLOPS (IBM, Wack et al. 2021)QV-like layers per secondyou are throughput-bound, not fidelity-boundper-layer fidelity
EPLG / XEBfidelity per cycledepth dominates the error budgetcrosstalk, drift
mirror circuitscrosstalk and non-Markovian errormany parallel two-qubit opsabsolute fidelity
application-shaped (QED-C)end-to-end on a real algorithmthe workload has real structuregenerality

Deciding rule: match the metric's ensemble to the workload. QV ranks general capability but says nothing about a 20-qubit, 200-layer circuit. CLOPS decides queue-and-shot-rate questions. EPLG decides depth-limited ones. If the workload is a chemistry VQE or a QFT, an application-shaped suite is the only one that predicts it.

Failure modes and detection.

  • Favorable day: rerun across days. If between-day spread exceeds within-day spread, you measured a day, not a device.
  • Post-selection: report raw and post-selected side by side. A large gap means the headline fidelity is bought with discarded shots.
  • Transpiler overfit: recompile with a different seed and a neutral compiler. A fidelity drop on recompile is the tell.
  • Vendor-specific optimization: run the same benchmark through a neutral compiler on both devices.
  • Baseline target differs: pin the classical baseline (exact statevector to ~30 qubits, tensor-network beyond). If changing the baseline flips the verdict, the decision is not validated.

Arithmetic that decides.

Illustrative: a workload with 100 two-qubit layers. At 0.5% error per layer, fidelity ≈ 0.995^100 ≈ 0.61. At 0.3%, 0.997^100 ≈ 0.74. A 0.2-point per-layer difference moves success probability ~13 points: that is the margin that decides, and it is smaller than typical day-to-day drift. That is why randomization and reruns are not hygiene; they are the measurement.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Evaluate and validate a quantum-hardware decision for throughput.

Answer

Throughput in quantum computing isn't just gate speed or qubit count. It's the rate of accepted results, results that meet the required accuracy, per unit of wall-clock time and cost. So I'd evaluate a hardware decision on three axes: speed, scale, and quality, but the metric that decides is accepted results per hour per dollar at the target accuracy.

Assume we have a specific workload: estimating the ground state energy of a small molecule with VQE, targeting chemical accuracy of 1 kcal/mol (about 0.0016 Hartree). We need a certain number of shots to achieve that statistical precision. Let's say we need to estimate an expectation value to within ±0.01 with 95% confidence. The standard error is σ/√N, so N = (1.96σ/0.01)^2. If σ=0.5, N ≈ 9604 shots. On a superconducting device with 100 µs per shot including readout and reset, that's about 0.96 seconds of QPU time. But if queue time is 10 minutes, wall-clock throughput is dominated by queue. So the first thing I'd measure is end-to-end wall-clock from job submission to result retrieval, not just QPU time.

Why does queue time dominate? Cloud quantum computers batch jobs. On IBM Quantum, for example, jobs are queued and you may wait minutes to hours depending on the queue. The QPU time might be seconds, but wall-clock is dominated by queue. Shot count dominates because each shot is a repetition; to reduce statistical error by half, you need four times the shots. Error mitigation like zero-noise extrapolation can multiply shots by 3-5x, further reducing throughput.

Now compare alternatives. Superconducting qubits (IBM, Google, Rigetti) have fast gates (single-qubit ~35 ns, two-qubit ~300-500 ns) but limited connectivity (nearest-neighbor) and coherence times around 100-200 µs. Trapped ions (IonQ, Quantinuum) have slower gates (single-qubit ~10 µs, two-qubit ~100-200 µs) but all-to-all connectivity and coherence times of seconds. For a circuit with many two-qubit gates, trapped ions may need fewer SWAP gates, so effective throughput can be higher despite slower gates. Deciding criteria: if your circuit is shallow and you need many shots, superconducting may win on speed. If your circuit is deep and needs high fidelity, trapped ions may win on accepted results per hour. Also consider cost: IBM charges by quantum seconds, IonQ charges by shots or time; you need to normalize to accepted results per dollar.

Failure modes to validate: fast wrong output. Hardware returns results quickly but with high error rates; detect by comparing against a simulator or running randomized benchmarking; cost is wasted budget and wrong conclusions. Queue excluded: measuring only QPU time ignores queue latency; detect by measuring wall-clock from submission to result; cost is overestimating throughput. Failed tasks omitted, if you only count successful jobs, you overestimate throughput; detect by tracking job failure rate and including retries; cost is inflated throughput. Benchmark circuit unlike workload: using quantum volume may not reflect your circuit's structure; detect by running your actual circuit or a representative subset; cost is misleading comparison. Shots ignored, if you don't account for the number of shots needed for statistical significance, you may overestimate throughput; detect by computing required shots for target confidence interval; cost is underpowered results.

Here's a worked comparison with hypothetical figures for a 20-qubit, depth-50 circuit requiring 10,000 shots:

Platform2Q gate timeConnectivity2Q fidelityShots neededQPU time per jobQueue timeWall-clock per jobAccepted results/hour
Superconducting (hypothetical)400 nsNearest-neighbor99.5%10,0000.2 s5 min5.0 min~12
Trapped ion (hypothetical)150 µsAll-to-all99.9%8,00032 s2 min2.5 min~24

So the decision: if wall-clock throughput is the priority and the circuit is shallow, superconducting may be adequate. But if the circuit is deep and you need high accuracy, trapped ions can deliver more accepted results per hour despite slower gates. Validate by running your actual workload on both, measuring end-to-end wall-clock, and counting only results that meet the accuracy bar.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

Evaluate and validate a quantum-hardware decision for availability and queue.

Answer

The 90-second answer. Treat this as a wall-clock decision, not a gate-speed decision. Three questions decide it: how long one shot takes on the device, how long a job waits before it starts, and how often a run has to be thrown away and repeated. For a hybrid loop (100 iterations, each submitted as its own job) billed QPU time is seconds while wall clock is days, and the queue term is what picks the vendor. State your assumptions before comparing anything: circuit depth, shot count, whether iterations are separate jobs or batched into a session, and whether the workload tolerates spanning a calibration boundary.

Why the queue dominates. Access is scheduled, not rented by the nanosecond. IBM Quantum meters QPU time in seconds and its fair-share scheduler weights your position by your usage over a rolling window, so a burst of jobs pushes your own later jobs back; the free Open plan's allowance is measured in minutes per rolling 28-day window (confirm the current number on the pricing page). Superconducting devices are recalibrated on the order of once a day and the published calibration snapshot changes, so a job that queues across that boundary can execute under different gate parameters than the iteration before it, which silently invalidates parameters a hybrid loop accumulated. Trapped-ion hardware inverts the profile: two-qubit gates run hundreds of microseconds against hundreds of nanoseconds for superconducting, but coherence is longer and queue contention is typically lower. Neither is faster in the abstract; they fail differently.

Arithmetic that decides it. Assume 2,000 shots per iteration, 1,000 two-qubit gates at 500 ns each, 2 µs readout per shot (illustrative figures, not a vendor spec):

  • per shot: 1,000 × 500 ns + 2 µs ≈ 502 µs
  • per iteration: 2,000 × 502 µs ≈ 1.0 s of QPU time
  • 100 iterations: ≈ 100 s billed
  • at a 30-minute median queue wait: 100 × 30 min = 50 hours wall clock
  • if 5 iterations hit a 4-hour p99 wait: 20 more hours

100 seconds of compute, 70 hours of calendar. The gate-speed difference between vendors is noise next to that.

access modelwhat you getwhat it costswhen it wins
fair-share queuebest-effort position, priority decaying with recent usageunpredictable tail; p99 wait can be 10–100× p50exploratory runs, few jobs
reservation / dedicated windowfixed start on a named deviceyou pay for the window whether or not the job is ready; calibration drift mid-window wastes itdeadline-bound experiment, fixed circuit
session / batch modedevice held across a batch, queueing onceblocks other users, capped duration, mid-session recalibration can invalidate accumulated parametershybrid loops with many short iterations

Failure modes and how to catch them.

  • Median-only reporting. p50 of 20 minutes hides a p99 of 6 hours, and a hybrid loop's wall clock is the sum of per-iteration waits, so the tail is the whole cost. Log submit, start and end timestamps per job and plot the distribution.
  • Failed jobs dropped from the average. Computing mean wait over completed jobs only erases retries. Track submitted versus completed counts and the failure codes.
  • Calibration boundary. Record the calibration snapshot ID per job; flag any run that spans a change, because its earlier parameters no longer describe the device.
  • Reservation idle time. Utilization = QPU busy time ÷ window length. A window at 15% utilization is a scheduling failure, not a hardware one.
  • Region and data policy. Job payloads and results cross regions on some providers. Read the data-residency terms before the run, not after.

What I'd validate before committing. Run a canary: submit one fixed calibration circuit at the same time daily for a week, record submit-to-result wall clock, and compute p50/p95/p99. Then run the real workload once and compare against the canary. If the real p99 exceeds the canary's by more than the shot-count ratio predicts, the queue model is wrong and the reservation is the safer buy.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Evaluate and validate a quantum-hardware decision for cloud boundaries.

Answer

What I'd say first

The question isn't "is the quantum cloud secure." It's: which legal entity's hardware runs my circuit, and where is that hardware physically? On classical cloud, the region you pick is where the compute is. On quantum, it isn't. You submit to a broker region; the job executes on a QPU in a provider's lab, often in another country. Braket exposes OQC's UK system through the London region, so a job submitted from eu-west-2 still runs on hardware OQC operates in the UK, and IonQ, Rigetti, IQM and QuEra are separate companies whose SOC 2 reports are not AWS's.

Payload size is a red herring. A 20-qubit circuit is a few KB and a 1,000-shot histogram is at most 1,000 entries. The risk is where the data goes, not how big it is.

So the decision has four parts, in order: name the QPU and its jurisdiction; choose broker vs direct; choose simulator vs QPU; then apply the ordinary controls (output bucket, IAM role, KMS, logging).

Assumptions I'd state: results land in an S3 bucket I own; the workload is regulated (say HIPAA or a UK data-residency commitment); I'm using a managed broker rather than a self-hosted QPU.

The decision

optionwhat you getwhat you give uppick it when
Broker (Braket, Azure Quantum)one IAM role, one billing line, one logging surface, several QPUsan extra subprocessor between you and the hardware; the QPU's jurisdiction is hidden in the device ARNyou need breadth and one audit surface
Direct (IBM Quantum, IonQ API)the provider's own terms, region and support contractN integrations, N credential stores, N log pipelinesone provider is contractually required, or you need their specific hardware
Simulator onlynothing leaves your VPCno real noise, no real device calibrationany time the answer doesn't depend on hardware noise

That last row is the cheapest decision you can make. Braket's SV1 state-vector simulator handles up to 34 qubits, DM1 up to 17, TN1 up to 50, and the local simulator runs in-process for free. Run the circuit there first; only promote to a QPU when the result actually depends on the device.

What the code looks like

Python
from braket.circuits import Circuit
from braket.devices import LocalSimulator
from braket.aws import AwsDevice

circuit = Circuit().h(0).cnot(0, 1).measure(range(2))

# 1. free, in-process, nothing crosses the boundary
LocalSimulator().run(circuit, shots=1000).result()

# 2. real hardware: the device ARN's region is the QPU's region, not yours
device = AwsDevice("arn:aws:braket:eu-west-2::device/qpu/oqc/Lucy")
task = device.run(circuit, s3_location="s3://acme-quantum-results/braket/", shots=1000)

The s3_location is the boundary that matters: results land in your bucket under your KMS key, so the provider never holds the output. The roleArn you pass to CreateQuantumTask should be scoped to s3:PutObject on that one prefix and nothing else.

Failure modes, and how you'd catch each

  • Result bucket public. The single most common miss. Detect with the AWS Config managed rule s3-bucket-public-read-prohibited and IAM Access Analyzer; both flag it before a human does.
  • Long-lived keys in a notebook. Braket needs a role, not an IAM user. Detect with Access Analyzer's unused-credential findings and CloudTrail AssumeRole events: a notebook using an access key shows up as a user, not a role.
  • Cross-border execution you didn't intend. The device ARN says eu-west-2; the QPU is in the UK. Detect by reading the provider's subprocessor list and the device ARN together, not the broker's region alone.
  • Deletion you can't prove. Your S3 lifecycle policy deletes results; the provider's job-metadata retention is governed by their DPA, not yours. Detect by getting the retention period in writing and testing it.

How I'd validate the decision before signing

Read the provider's DPA and subprocessor list and confirm the QPU's country. Check the device ARN region matches your residency commitment. Run Microsoft's Quantum Resource Estimator (free, local) to size the problem before paying per shot. Then test the bucket policy with Access Analyzer in a sandbox account.

When I'd decide differently: if the workload is ITAR or UK-residency-bound, go direct to the provider whose hardware is in-country rather than through a broker that adds a subprocessor. If the answer doesn't depend on hardware noise, don't buy a QPU at all.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-20

Evaluate and validate a quantum-hardware decision for pulse control.

Answer

What I'd say first

The decision to go pulse-level is only worth validating if there's a reason for it. Two reasons hold up: you need a gate the device's native set doesn't provide (a custom cross-resonance gate, a schedule shorter than the transpiler emits for a dynamical-decoupling block), or you need to re-calibrate a gate yourself. If neither is true, stay at gate level: pulses are per-device, per-calibration artefacts and you inherit all of that fragility for nothing.

Assumption I'd state out loud: a superconducting transmon backend with a fixed sample rate, and the team on Qiskit 1.x. Qiskit Pulse was deprecated in Qiskit 1.0 and removed in 2.0; the standards-track replacement is OpenQASM 3 defcal blocks. If the team is on 2.x, that part of the decision is already made for them.

Layer 1: the waveform

Sample resolution. IBM control hardware runs at 4.5 GS/s, so dt = 0.2222 ns and every duration is an integer number of samples. A 160-sample DRAG pulse is 35.55 ns. Want 35.0 ns and you get 157.5 samples, which the builder rounds: that rounding is a real rotation error, not cosmetic.

Amplitude. The π-pulse amplitude comes from a Rabi experiment and is stored as a fraction of full DAC range. Two bounds matter: |amp| ≤ 1.0, or the DAC clips and the waveform distorts into leakage; and the sensitivity. A 1% amplitude error over-rotates by δ = 0.01, giving infidelity sin²(πδ/2) ≈ 2.5×10⁻⁴. That number is what tells you how often Rabi must be re-run.

DRAG beta. The derivative term cancels leakage into |2⟩. Beta is calibrated by sweeping it and measuring leakage, not guessed.

Python
# Qiskit 1.x (qiskit.pulse removed in 2.0)
from qiskit import pulse
from qiskit.pulse import library as pulse_lib

DT_NS, DUR, AMP = 0.2222, 160, 0.42   # 4.5 GS/s -> 35.55 ns

with pulse.build() as sched:
    pulse.play(pulse_lib.Drag(duration=DUR, amp=AMP, sigma=DUR/4, beta=0.35),
               pulse.DriveChannel(0))

assert DUR * DT_NS <= 100.0   # fits the coherence budget
assert abs(AMP) <= 1.0        # no DAC clipping

Layer 2: the schedule

Frame changes are the cheap Z. A virtual-Z is a phase update on the drive frame: zero duration, no decoherence cost, exact. A physical Z pulse costs tens of ns. So every Z rotation should be a frame change, which makes the frame state you carry through the whole schedule, and a stale frame or one applied to the wrong channel is a silent error, not a crash.

Overlap and channels: two pulses on the same DriveChannel in overlapping time windows is a scheduling error; catch it at build time, not at the backend. And the channel index is the qubit index: DriveChannel(1) when you meant DriveChannel(0) rotates the neighbour.

Layer 3: calibration freshness

This is where the deciding arithmetic lives. A stale drive frequency Δf detunes the pulse and applies an unwanted Z rotation of 2πΔf·t.

  • Δf = 10 kHz over a 35.55 ns pulse: 2π × 10⁴ × 35.55e-9 = 2.2×10⁻³ rad. Irrelevant.
  • Same Δf over a 20 µs DD block: 2π × 10⁴ × 20e-6 = 1.26 rad ≈ 72°. Fatal.

So the rule isn't "always re-calibrate"; it's "re-calibrate when the schedule is long relative to 1/Δf". For a 20 µs block with 10 kHz drift, that's every few hours.

checkpassfaildetection
durationinteger samples, within budget157.5 samples roundedassert dur % 1 == 0
amplitude|amp| ≤ 1.0, within 1% of RabiDAC clipping, 2.5e-4 infidelityRabi re-run, leakage sweep
channelindex matches target qubitneighbour rotatesRB on both qubits
overlapno two pulses share a channel windowbuild error or dropped pulseschedule build
framephase tracked end-to-endsilent phase errorcompare against gate-level Z
frequencyΔf·t ≪ 1 rad72° over 20 µsdrift log vs schedule length
devicecalibration hash matches backendpulse replayed on another deviceschedule metadata

When not to

If the transpiler already produces a schedule inside your coherence budget, pulse-level control buys nothing and costs portability: the same waveform on a qubit with different anharmonicity is a different gate. The deciding question is whether the gate you need exists at gate level. If it does, don't.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Evaluate and validate a quantum-hardware decision for mid-circuit control.

Answer

Core answer. The decision is not "does this backend support mid-circuit measurement": every SDK will compile an if statement. It is whether the backend executes a measurement-conditioned gate inside a single shot, with a feed-forward latency that fits inside the coherence of the qubits that must wait, and whether the compiler preserves the conditional instead of silently deferring it. Four questions decide it: (1) is the conditional real-time or post-selected; (2) what is the measured readout + decision + trigger latency, and how many rounds does the algorithm need; (3) is the classical bit scope correct per shot; (4) does measuring one qubit degrade its neighbours.

Mechanism. Real-time feed-forward is a three-stage pipeline: the readout pulse integrates the resonator signal (order of a microsecond on superconducting transmons), a classical controller discriminates the bit and issues a conditional pulse, and that pulse is triggered on the target qubit. All while the rest of the register idles. On current IBM Heron/Eagle devices median T2 is in the low hundreds of microseconds, so one conditional round is cheap; ten rounds of syndrome extraction is where it starts to bite.

The three things "mid-circuit control" can mean:

implementationwhat actually happenscost
Real-time feed-forwardmeasurement result drives a conditional pulse in the same shotlatency budget, hardware support
Post-selectionmeasure at the end, discard shots failing the conditionshots scale as 1/p per conditional
Deferred measurementmeasure everything at the end, classically combineno qubit reuse, no adaptivity

Latency budget (illustrative figures). Readout 1.0 µs + classical decision 0.5 µs + trigger 0.2 µs ≈ 1.7 µs per round. Ten rounds = 17 µs, about 11% of a 150 µs T2: acceptable. If the vendor's feed-forward is 10 µs per round, ten rounds = 100 µs, two-thirds of coherence, and the logical error rate degrades faster than the code can correct. That number decides the decision, and it is measured, not read off a datasheet.

Python
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 1)
qc.h(0)
qc.measure(0, 0)
with qc.if_test((qc.clbits[0], 1)):
    qc.x(1)

Transpile it and confirm the output still contains IfElseOp; if it has been rewritten into a deferred measurement, the backend is not doing real-time control.

Failure modes and detection.

  • Syntax-only support. Compiles, but the conditional is post-selected. Detect by inverting the condition in a control circuit: if the output distribution does not change, the conditional never fired in real time.
  • Latency exceeds coherence. Insert a conditional and sweep the idling delay on the waiting qubit; fringe visibility decays with the effective T2. If a conditional round is a large fraction of T2, the branch result is noise.
  • Stale bit. The classical register is not reset between shots. Detect with a circuit that measures |0⟩ and conditions on 1: the conditional gate must never apply.
  • Unsupported nesting. Nested conditionals or conditionals inside loops. Detect at compile time; some early dynamic-circuit releases accepted only single-bit conditions and rejected nesting, so check the backend's documented constraints rather than the SDK's syntax.
  • Measurement disturbs neighbour. Readout crosstalk. Detect with a "measure one, Ramsey the neighbour" experiment: compare the neighbour's T2 with and without an adjacent measurement.

When not to use it. If the algorithm can be written with deferred measurement, most teleportation-based circuits can, do that; it is free. Use mid-circuit control only when the result must change subsequent gates in the same shot (repeat-until-success, qubit reuse, error correction with feedback) and the latency budget closes. The same four questions apply on trapped-ion and neutral-atom hardware, where shuttling and atom reload dominate the budget instead of the classical decision, so the arithmetic changes but the method does not.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

Evaluate and validate a quantum-hardware decision for compiler-hardware co-design.

Answer

Core answer

The decision is not "which device is better". It is whether a specific (device, compiler, calibration window) triple clears a workload-level bar, and whether it still clears it once the compiler's stochastic layout and routing choices and the device's calibration drift are allowed to move. State three assumptions before anything else: the workload family and its logical interaction graph; the bar itself (for example, estimated success probability ≥ 0.5 at the target depth, or a shot-latency budget); and the window the answer must hold for. One calibration cycle, typically hours, not indefinitely.

Then answer directly: compile the workload across its parameter range, score the physical schedules, and require the p95 across compiler seeds and calibration snapshots to clear the bar. A best-of-one run is not evidence. Device-level benchmarks such as Quantum Volume or CLOPS rank devices in the abstract; they do not tell you whether your circuit compiles well onto this coupling map.

Why a theoretically suitable device fails

Three mechanisms, none visible in the abstract circuit.

Topology forces routing. A coupling map that does not match the workload's interaction graph needs SWAPs, and each SWAP is three CX. Routing cost scales with how badly the graph embeds, so a device with excellent per-gate error can still lose.

Native gate set forces decomposition. A circuit written in CX + U3 is not what runs on a device whose native two-qubit gate is ECR or iSWAP. The decomposition is where extra depth appears, and it is compiler-version dependent.

Calibration drift makes the validated schedule stale. The error rates and durations you scored against are a snapshot. A schedule that clears the bar at 09:00 may not at 15:00.

Worked arithmetic (illustrative figures)

Workload: 200 logical two-qubit gates. Two-qubit error 8e-3 per CX.

  • All-to-all device, no routing: 0.992^200 ≈ 0.20.
  • Heavy-hex device (degree ≤ 3), transpiler reports 200 logical + 90 routing SWAPs = 470 CX: 0.992^470 ≈ 0.023.

Routing alone costs roughly 9× in success probability. Now the counter-case: an all-to-all device with 3× the per-gate error (2.4e-2) and no routing: 0.976^200 ≈ 0.008. Connectivity does not decide the ranking; the compiled schedule does.

What to score, and how each failure is detected

checkpassfaildetection
topology fitrouted CX ≤ 1.5× the all-to-all lower boundrouting dominates the schedulecompare CX count before and after routing
native gate setdecomposes into the target basis with no extra SWAPsbasis translation adds depthinspect transpiled gate counts
calibration stabilityp95 ESP across snapshots within 10% of medianone snapshot carries the resultrecompile after each calibration update
compiler seedp95 depth across 50 seeds within 20% of medianone lucky layoutloop seed_transpiler 0..49
target matchcompiled against the backend you will submit toqubit count or coupling map differscompare against backend.target

In Qiskit 1.x this is a loop over generate_preset_pass_manager(optimization_level=3, backend=backend, seed_transpiler=s) for s in 0..49, reading per-gate error and duration from backend.target (InstructionProperties.error, .duration). The layout and routing passes are where seed-to-seed variance comes from.

Trade-offs and when not to use this

Better connectivity with worse gates versus the reverse is decided by compiling, not by spec sheets: the arithmetic above shows either can win. optimization_level=3 searches harder but costs compile time and can be less stable across seeds; if compilation sits inside a variational loop, a lower level with a fixed seed often beats it. If the workload's interaction graph is already a subgraph of the coupling map, routing never triggers and the whole exercise collapses to measuring per-gate error: do that instead.

Failure modes and their cost: a lucky layout (detected by the seed sweep) produces a production result that will not reproduce; a calibration-fitted parameter set (detected by re-running on a later snapshot) degrades silently; a target mismatch (detected by comparing backend.target) submits to a device that reroutes or rejects; source depth beyond the coherence budget (detected by comparing transpiled depth × gate duration against T2) yields results dominated by decoherence.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Evaluate and validate a quantum-hardware decision for logical qubits.

Answer

The 90-second answer

A vendor says they have logical qubits. I want three numbers before I accept it: logical error rate per cycle at two or more code distances, physical qubits per logical qubit, and decoder latency against the cycle time. Missing any of them, the claim is a memory demonstration, not a logical qubit I can build on.

Assumptions: superconducting surface code, circuit-level noise, MWPM-family decoder. Trapped-ion or neutral-atom numbers differ; the checks don't.

Why distance and decoder decide the rate

A distance-d surface code is d² data qubits plus d²−1 ancillas, measured every cycle. Below threshold, each +2 in d divides the logical error rate by Λ. Google's Willow paper (Nature 638, 2025) reports Λ = 2.14: 0.265% per cycle at d=5, 0.143% at d=7. First below-threshold surface code, but the absolute rate is still ~10⁻³ per cycle, not 10⁻⁶.

The decoder is half the result. Syndromes must be decoded faster than the cycle or the quoted rate is unreachable. Willow runs a neural-network-assisted correlated matching decoder in real time; PyMatching and Stim are the open-source baselines most groups compare against.

Overhead arithmetic

Extrapolating Willow's Λ = 2.14 from 1.43×10⁻³ per cycle to 10⁻⁶: log(1430)/log(2.14) ≈ 9.6 steps of 2 in distance, so d ≈ 27, or 2d²−1 ≈ 1,460 physical qubits per logical qubit. That is an extrapolation, not a measurement.

Trade-offs

Surface code: 2d²−1 physical per logical, nearest-neighbour only, mature decoders. qLDPC trades connectivity for rate: IBM's [[144,12,12]] gross code (Bravyi et al., Nature 627, 2024) fits 12 logical qubits in 144 physical qubits, roughly 10× better encoding rate, but needs long-range couplers and a costlier decoder. No long-range gates, no qLDPC.

Failure modes and how to catch them

failure modehow to detect it
memory only, no logical gatesask for logical CNOT or lattice-surgery error rate; absent means memory experiment
post-selected detectioncheck whether the rate is per accepted shot; post-selection discards the bad ones
one good physical qubit relabeled logicalcheck qubits-per-logical and the named code
decoder cost left outcheck decoder latency against cycle time
Λ ≤ 1check two distances; if the rate doesn't fall, distance buys nothing

What changes the decision

Λ > 1 at two distances, real-time decoding, and a logical two-qubit gate below the physical two-qubit error rate: pilot. Memory plus post-selection: wait.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-25

A vendor's datasheet claims T1 = 400 µs, 99.9% two-qubit fidelity and 1% readout error. How do you validate those numbers before committing to the platform, and what in the datasheet would make you distrust them?

Answer

Core answer (first 90 seconds).

I don't validate a datasheet. I validate a distribution over time on the device I would actually be scheduled on. Vendor headline numbers are almost always the best qubit on the best day, measured with the vendor's own protocol, and a shared cloud QPU is not that device on that day.

Assumptions I'd state up front: gate-based hardware (superconducting or trapped ion); I'm buying time on a shared QPU through a broker, so I get whichever calibration window I land in; my workload has a known shape. Width, depth, two-qubit gate count, and which qubit pairs it needs.

So validation is three moves. First, ask what the number is a statistic of: median or best, which qubits, which date, which protocol. Second, pull the vendor's own timestamped calibration data and recompute the statistic I care about: median over the qubits my circuit touches, not the max over the chip. Third, run one independent experiment whose circuit shape matches my workload and check it lands where the calibration data predicted. If the headline and my recomputed median disagree by more than the week-to-week drift visible in the calibration history, the headline is marketing.

What each metric is, and what I recompute.

claimed metricwhat the vendor usually meanswhat I recomputewhat makes me distrust it
T1max over the chip, best daymedian and 10th percentile over the qubits my circuit uses, across ≥7 daysone number, no date, no per-qubit spread
T2Ramsey (T2*) unless the pulse sequence is namedHahn-echo T2 if the claim says "T2"; T2* is dephasing-limited and often 2-5× shorter"T2 = 400 µs" with no sequence named
1Q fidelityRB error per Clifforderror per physical gate; a Clifford is 1-2 physical gatesfive significant figures with no confidence interval
2Q fidelityRB or XEB on the best pairmedian over the pairs my coupling map actually needsa pair that isn't on my path
readout erroraverage over all qubitsper-qubit assignment matrix, both directionsaverage only: readout error is asymmetric, the excited state decays to the ground state more often than the reverse
qubit countphysical qubits on the diethe connected component I can use above a fidelity floora count with no connectivity or fidelity floor attached

The arithmetic that decides the commit. Take a 100-qubit, depth-100 circuit with one two-qubit gate per layer. At a quoted 99.5% two-qubit fidelity the success probability is 0.995^100 ≈ 0.61. At 99.9% it is 0.999^100 ≈ 0.90. A 0.4-point difference in the quoted number is the difference between a result and noise, so the precision of the claim, and whether it is the median or the best pair, is the whole decision. Add readout: at 2% per-qubit readout error over 100 measured qubits, 0.98^100 ≈ 0.13 of shots land in the correct bitstring before any gate error. That is why I check readout error before gate fidelity for shallow circuits.

Independent check. Run randomized benchmarking or XEB on the actual device, or a mirror circuit of my own workload, and compare against the prediction from the calibration snapshot. IBM publishes calibration jobs and timestamped backend properties; Braket exposes per-device properties. If I can't reproduce the vendor's number within its own stated uncertainty, I don't commit.

Failure modes I'd name. Calibration drift: T1 on a transmon can halve after a cosmic-ray event or a TLS defect shifting into resonance, so a number from three weeks ago is not evidence. Leakage: RB reports error per Clifford assuming errors stay in the computational subspace; a leaked |2⟩ state shows up as correlated error in my circuit and not in the RB number. Crosstalk: a pair benchmarked in isolation can be worse when its neighbours are driven. Non-Markovian noise breaks RB's time-independence assumption, so the RB number is optimistic for long circuits. And cherry-picking: a benchmark run on a different device revision, or a calibration window chosen after the fact.

When I wouldn't do this. For a two-week prototype, a week of calibration history and one mirror circuit is enough. Full independent benchmarking is for the commit decision, not for exploration.

Curated: · Written: · Reviewed:

Difficulty: Hard