Quantum Computing Master Course — 198. Capstone Results and Failure Analysis
Lesson 198: Capstone Results and Failure Analysis
Smartyfy Quantum Computing Master Course
Objectives and prerequisites
Explain the capstone results, investigate an apparently surprising equality, and separate numerical, statistical and model failures. Prerequisites are the implementation in Lesson 197, diagonal phase gates and convergence order. The goal is to understand the data rather than select whichever plot looks most favorable.
Start with the complete result
The symmetric 32-step method passes the finite-grid requirements: maximum phase-aligned state distance is about 0.000717398 and maximum transfer-probability bias about 0.000643532. First order at the same step count has maximum state distance about 0.019640562, so it fails the 0.002 state-distance requirement.
However, both methods have the same transfer probabilities to numerical precision for every matched case in this particular study. Their maximum population biases at 8, 16 and 32 steps are approximately 0.010447519, 0.002581661 and 0.000643532. A population-only graph would completely conceal the large difference in state accuracy.
This equality is not evidence that the implementation accidentally reused the same state. It has an algebraic explanation tied to the input, observable and ordering. Reproducing the explanation is a stronger result than merely observing overlapping plotted lines.
Explain the equal populations
For one time step let D = exp(−iAδ/2) and V = exp(−iBδ), where A = −ΔZ and B = JX. First order is F = D²V; the symmetric step is S = DVD. Therefore F = D S D†, and repeating gives F^r = D S^r D†.
The initial logical-zero state is an eigenvector of diagonal D†, so the rightmost factor changes it only by a global phase. The leftmost D changes component phases but preserves their magnitudes. Consequently F^r and S^r give identical logical-Z measurement probabilities from this initial state, for any positive integer r and any real t,J,Δ under this splitting.
They need not give identical relative phases or logical-X measurements. The result also need not hold for an arbitrary initial superposition. Its scope depends on the input being an eigenstate of A and the measured projector commuting with D. A special cancellation in one observable does not upgrade the full first-order method to second order.
| Refinement | First-order error ratio | Symmetric error ratio |
|---|---|---|
| 8 to 16 steps | 2.0257 | 4.0299 |
| 16 to 32 steps | 2.0065 | 4.0075 |
| Estimated order at 16 to 32 | log₂ ratio ≈ 1.0047 | log₂ ratio ≈ 2.0027 |
Interpret rates and costs together
For an error behaving as C/rᵖ, doubling r reduces error by approximately 2ᵖ. The listed ratios are consistent with first- and second-order state convergence on this grid. They are empirical diagnostics, not a replacement for product-formula error analysis or a universal guarantee at arbitrary time.
Coarse cases do not have to display their asymptotic order cleanly. At r = 1, the maximum state distances are about 1.31583 and 0.98828. Refinement eventually reaches the regime where leading error terms dominate. At extremely fine resolution, floating-point effects can obscure the theoretical rate instead.
At r = 32, first order uses 64 logical generator exponentials and symmetric splitting uses 65 after adjacent A half steps are merged. For a state-accuracy requirement, the extra boundary factor is worthwhile here. For only the stated population task, first order achieves the same ideal population with one fewer abstract factor. The output contract determines which comparison matters.
These counts omit native-gate synthesis, routing, physical error rates and measurement overhead. A hardware implementation could change the practical ranking. The present calculation establishes an ideal approximation tradeoff, not an experimental winner.
Use deliberate failures to test interpretation
Reverse the detuning sign in an otherwise exact implementation. At t = 1, transfer probability remains about 0.592168050. Logical X changes from about −0.829035271 to +0.829035271, an absolute discrepancy of about 1.658070542. Normalization, unitarity and population tests all pass while the phase-sensitive target fails.
This is a useful diagnostic mutant: a deliberately wrong model that reveals which tests are sensitive to a specific mistake. It does not prove the test suite catches every possible bug. A swapped basis label or an omitted coupling term requires its own targeted check.
A different failure would be interpreting a sample fluctuation as a deterministic simulation error. At t = 1, the sampled transfer estimate 0.599 differs from the approximate probability by about 0.00670, much more than the approximation bias of about 0.000130. This is entirely compatible with the finite-shot scale for 2,000 Bernoulli draws.
Separate the error layers
The observed-minus-exact difference can be decomposed into observed-minus-approximate and approximate-minus-exact. The first term is sampling fluctuation in this program; the second is deterministic splitting bias. A physical experiment would add calibration, preparation, readout and drift effects, which this model does not contain.
Wilson intervals quantify a single sampling proportion under the stated model. They are nominal approximate intervals and do not automatically cover ten settings jointly. A conservative simultaneous alternative follows from a Bernoulli concentration bound and a union bound: with K settings, N draws each and failure budget α, use probability radius √[ln(2K/α)/(2N)].
For K = 10, N = 2000 and α = 0.05, that radius is about 0.03870. For an X expectation transformed from a plus probability, double it to about 0.07740. This joint statement needs independent draws within each setting; the union bound itself does not require independence between settings. Approximation bias still remains separate.
Finally, distinguish a code failure from a scope limit. Excluding leakage states is not a discovered device success or failure. It is a declared modeling choice. The correct response to a leakage question is to expand the model and evidence, not reinterpret a two-component norm check.
Four worked exercises
-
Show why F = D S D† when S = D V D.
Solution. Multiplying gives D(DVD)D† = D²V(DD†) = D²V = F. Repeated adjacent D†D factors cancel, so F^r = D S^r D†.
-
Estimate the symmetric convergence order from errors 0.002874961 and 0.000717398.
Solution. Their ratio is about 4.0075. Taking log base two gives p ≈ 2.0027, consistent with second-order behavior on this refinement pair.
-
Why does reversing Δ evade the population test but fail the X test?
Solution. Exact transfer contains Δ only through J² + Δ². Logical X also has a factor −2JΔ, so changing the sign of Δ reverses X for the declared input.
-
Calculate a simultaneous probability-error radius for ten settings with 2000 draws each and α = 0.05.
Solution. The radius is √[ln(400)/4000] ≈ 0.0387023. Transforming a plus probability to an X expectation doubles the radius.
Five explained multiple-choice questions
-
What explains the matched transfer probabilities in this capstone? A. Every first-order product formula is second-order accurate. B. The Hamiltonian terms commute for Δ = 0.7. C. The two propagators are related by diagonal boundary phases compatible with the input and observable. D. Relative phase never affects any quantum measurement.
Answer: C. The conjugation relation preserves the particular Z populations without equating the full states.
-
Which new input could invalidate the population-equality argument? A. The same logical-zero input at a different step count. B. The same logical-zero input at a different real time. C. A superposition that is not an eigenstate of the A generator. D. The same logical-zero input with another real detuning.
Answer: C. The argument used the right boundary phase being global on the initial eigenstate.
-
What does an error ratio near four under step doubling suggest? A. A second-order refinement regime for the measured error. B. An exact zero-error result at the next refinement. C. The leading error coefficient is exactly four for every time. D. Second-order behavior is guaranteed outside the tested refinement range.
Answer: A. The relation error proportional to r to the minus p gives a ratio of approximately 2 to the p.
-
Which test detects the exact detuning-sign mutant here? A. Only normalization of the state. B. Only unitarity of the propagator. C. The logical-X expectation against the declared target. D. Only the logical-Z transfer probability.
Answer: C. Logical X is odd in detuning, unlike the population and structural invariants.
-
What must be added to a sampling-only interval to discuss exact-target error? A. A statement that every interval is simultaneous by default. B. The separately quantified deterministic approximation bias. C. A claim that fixed seeds eliminate randomness in the sampling model. D. An assumption that unitary evolution removes all statistical uncertainty.
Answer: B. An interval for samples from the approximate model does not automatically include its bias from the exact model.
Pitfalls and summary
The strongest result is an explanation: state errors have different orders while this population observable is exactly matched between formulas. Report that nuance, preserve coarse failures and keep sampling, approximation and model scope distinct.
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.