smartyfy.mrindigi.com

Quantum Computing Master Course — 139. Benchmarking Hardware

Lesson 139: Benchmarking Hardware

Smartyfy Quantum Computing Master Course

Objectives and prerequisites

Distinguish gate, circuit, and application benchmarks; interpret a randomized-benchmarking decay; and identify what a benchmark does not establish. Prerequisites are quantum channels, average fidelity, sampling uncertainty, and compilation. Every numerical dataset in this lesson is hypothetical. A benchmark result is meaningful only together with its protocol, operating conditions, and analysis assumptions.

Different tests ask different questions

A gate benchmark characterizes a set of elementary or compiled operations. A circuit benchmark tests whether an implementation can reproduce a specified family of circuit behaviors, including some effects of connectivity and compilation. An application benchmark asks whether a useful workload reaches a target accuracy, success probability, or solution quality within a stated resource budget.

These levels are related but not interchangeable. Excellent isolated gates can coexist with poor simultaneous performance, expensive routing, slow reset, or an unsuitable application circuit. Conversely, a specialized workload may exploit structure that a generic random-circuit benchmark does not emphasize. A single ranking cannot be assumed to hold for all tasks.

Match a benchmark to the question it answers
Level Example question Missing information to check
Gate How does a specified gate ensemble behave? Leakage, correlations and simultaneous operation
Circuit How large a prescribed circuit family passes? Compiler choices and family representativeness
Application Does a workload meet accuracy and runtime targets? Classical baseline, preprocessing and repetition costs

Randomized benchmarking separates decay from offsets

A common randomized-benchmarking protocol chooses random Clifford sequences of length m, appends an inverse intended to return the ideal state, and measures a survival probability. A Clifford unitary maps Pauli operators to Pauli operators under conjugation. Averaging over many random sequences can simplify the effect of noise and permit a fitted decay model.

Under appropriate assumptions, the mean survival is modeled as F(m) = A p^m + B. Here p is a decay parameter, while A and B absorb certain preparation, measurement, and boundary effects. This helps make the decay estimate robust to some state-preparation-and-measurement errors, often abbreviated SPAM. It does not mean every SPAM process, drift pattern, or gate-dependent error is harmless.

For an effective depolarizing channel on Hilbert-space dimension d, the average gate infidelity associated with p is r = (d−1)(1−p)/d. For a single qubit d = 2, this becomes r = (1−p)/2. The parameter r is an average fidelity metric under the model; it is not automatically the probability of a particular Pauli fault in every physical implementation.

Worked decay interpretation

Take A = 0.45, B = 0.50, and p = 0.996 for a hypothetical single-qubit Clifford experiment. Then F(0) = 0.95, F(100) ≈ 0.80140, and the inferred average Clifford infidelity is 0.002. The nonunit initial survival can arise from the fitted boundary terms, rather than requiring that every Clifford begins with a five-percent gate failure.

The unit of sequence length matters. If m counts Clifford operations, the fitted rate is per sampled Clifford in that implementation. A Clifford can compile into a varying number of native pulses. Dividing the result by an average pulse count is sometimes used as an approximation, but it needs assumptions about composition and error uniformity. It is not an exact universal conversion.

For a two-qubit depolarizing model, d = 4. The same p = 0.996 corresponds to r = 3(0.004)/4 = 0.003. Reusing the single-qubit factor one half would give the wrong metric. Dimension and the precise definition of the fitted parameter must be stated.

Interleaving does not remove all assumptions

Interleaved randomized benchmarking inserts a target gate between reference operations. Comparing the reference decay with the interleaved decay can estimate the target gate’s contribution. In a simplified depolarizing model, one writes r_gate ≈ (d−1)[1 − p_interleaved/p_reference]/d.

For a single qubit with reference p = 0.995 and interleaved p = 0.990, this gives approximately 0.002513. The formula is an estimate with assumptions and uncertainty, not an exact subtraction of all other errors. Gate-dependent noise, coherent effects, and statistical fluctuations can complicate the ratio. A negative fitted estimate should trigger examination of uncertainty and model validity rather than a claim of physically negative error.

Circuit-family benchmarks add compilation context

Quantum volume is one example of a circuit-level benchmark. Its protocol considers randomized model circuits with equal width and depth and evaluates generation of outputs that are heavy according to their ideal probabilities. Heavy means above the median ideal output probability for that circuit. The protocol uses a success threshold and statistical confidence across a prescribed ensemble, rather than declaring victory from one favorable circuit.

In the usual reported convention, passing width and depth m corresponds to quantum volume 2^m. This metric combines several implementation features, including compiled gate quality and connectivity, but it does not directly count protected logical qubits or prove an application speedup. Protocol details, accepted optimizations, sample sizes, and confidence rules matter when comparing reported values.

Mirror-circuit and related tests provide other ways to generate known expected outcomes for larger circuits. Their usefulness also depends on randomization and circuit construction. A naive gate followed immediately by its inverse can hide a systematic error if the physical implementations cancel each other’s miscalibration. Passing such a narrow test alone is weak evidence of general gate accuracy.

Application comparisons need an end-to-end boundary

An application benchmark should specify input size and distribution, requested output, error tolerance, success criterion, and classical reference methods. Include state preparation, compilation, sampling, classical optimization, communication, and result processing when they belong to the claimed runtime. A faster device execution interval is not necessarily a faster end-to-end answer.

Report uncertainty, failures, excluded runs, and whether mitigation or postselection was used. Conditional accuracy on selected runs should travel with acceptance probability and repetition cost. Record the calibration date, software versions, circuit family, compilation seed where relevant, and simultaneous-operation conditions. These details let readers distinguish a reproducible result from a number stripped of its experimental meaning.

Four exercises with worked solutions

  1. For a single-qubit depolarizing RB parameter p = 0.998, calculate r.

    Solution. r = (1−0.998)/2 = 0.001. This is the model’s average infidelity per sequence unit, whose physical meaning depends on what m counts.

  2. For d = 4 and p = 0.998, calculate the corresponding r.

    Solution. r = (3/4) × 0.002 = 0.0015. The dimension factor differs from the single-qubit case.

  3. A quantum-volume protocol passes m = 6. What is its usual reported value?

    Solution. It is 2^6 = 64. This means the specified width-six, depth-six model-circuit test passed under its rules, not that sixty-four protected logical qubits were demonstrated.

  4. Why can a gate-and-inverse test miss a coherent error?

    Solution. If the implemented inverse contains a compensating systematic deviation, the pair can cancel even though each operation differs from its intended gate. More varied sequences are needed to expose that possibility.

Five explained multiple-choice questions

  1. In F(m) = A p^m + B, p primarily represents: A. The probability of preparing zero exactly. B. The number of native pulses per Clifford. C. The fitted decay parameter under the benchmark model. D. The confidence level of the experiment.

    Answer: C. Preparation and measurement effects enter other terms in the simplified model.

  2. For a single-qubit depolarizing model with p = 0.996, r is: A. 0.004. B. 0.006. C. 0.996. D. 0.002.

    Answer: D. The single-qubit conversion multiplies one minus p by one half.

  3. A rate measured per Clifford can be reported per native pulse exactly only when: A. A justified conversion model establishes the relation for the implemented pulse ensemble. B. Every Clifford has at least one pulse. C. A compilation seed was recorded. D. The survival curve starts below one.

    Answer: A. Pulse-count division alone does not handle arbitrary composition and gate-dependent noise.

  4. A quantum-volume value is best interpreted as: A. A direct number of error-corrected logical qubits. B. A result for a specified randomized circuit-family protocol. C. A universal application speedup factor. D. A device-independent measurement of coherence time.

    Answer: B. Its meaning depends on the benchmark family, compilation and statistical rules.

  5. Postselected application accuracy should be accompanied by: A. Only the best accepted result. B. The assumption that rejected runs cost no time. C. Acceptance probability, exclusions, and resource accounting. D. A conversion to gate fidelity without further assumptions.

    Answer: C. Conditional quality alone can hide substantial failure and repetition cost.

Pitfalls and summary

Match metrics to questions, identify their sequence units and models, and preserve uncertainty and operating conditions. Gate averages, circuit-family success, and application performance are complementary evidence, not interchangeable definitions of a better computer.

Primary sources and further study

These sources support the definitions and context. The numerical examples, exercises, and explanations here were prepared for this lesson. Research papers are optional advanced reading.