Steven GellerQuantum Computing, End to End

Book contents

Current section

Part VII. Hardware Architecture

  1. The Full Quantum Computer Stack
  2. Superconducting Qubits
  3. Trapped Ions
  4. Neutral Atoms
  5. Photonics
  6. Silicon Spin Qubits
  7. Cat Qubits and Bosonic Encodings
  8. Topological Qubits and Evidence Standards
  9. Cryogenics, Control, Packaging, and Manufacturing
  10. Quantum-Centric Supercomputing and Hybrid Workflows

Part VII. Hardware Architecture · Chapter 63

Quantum-Centric Supercomputing and Hybrid Workflows

Almost every serious quantum application is a loop: classical machines prepare the data, submit the job, verify the output, and pick the next step, while the quantum processor runs one specialized subroutine. This chapter teaches you to evaluate the loop — and the classical baseline it has to beat.

Artifact
In this chapter 17 sections

Treat the QPU as a remote or tightly coupled accelerator with a narrow typed interface, batch work to amortize dispatch and queueing, measure the complete CPU/GPU/QPU/storage path, and compare end-to-end quality, time, energy or cost against the best classical workflow under the same objective.

A functioning hybrid loop establishes orchestration, not quantum advantage or buyer value. Quantum-kernel time, QPU access time, queue wait, classical optimizer time, and end-to-end time are separate measures and cannot be selectively reported.

Hybrid CPU, QPU, storage, and feedback traceA typed quantum kernel is embedded in a workflow whose queue, dispatch, acquisition, transfer, aggregation, optimizer, and matched-baseline spans determine end-to-end value.CPUqueueQPUdataGPUpreparewaitshots × groupsreturnoptimizebaselineend-to-end acceptance boundary
Figure 63.1. Hybrid workflow trace and batching simulator: The trace reconstructs queue, dispatch, acquisition, data movement, optimizer feedback, and matched-baseline time at the workflow boundary.

Partition a workflow around a typed QPU kernel

Declare inputs/outputs, data volume, repetitions, precision, and validation for a small variational or chemistry-style loop.

Strip the branding off most "quantum computing will transform industry" claims and you find a workflow. Classical computers prepare data, choose parameters, dispatch jobs, store results, verify outputs, and compare against baselines. The quantum processor — today and for the foreseeable future — performs a specialized piece: a sampling task, a simulation block, an expectation-value estimate, eventually a fault-tolerant logical operation. The honest question was never "quantum or classical?" It is which part of the workflow, if any, benefits from quantum execution under real constraints.

Quantum processors operate as components in a broader classical compilation, control, execution, and post-processing stack. [full-stack-review] [qir-alliance-specification]

Model the quantum device as a scheduled accelerator

A hybrid workflow is a directed graph of classical preparation, compilation, data movement, queueing, quantum execution, measurement transfer, post-processing, and a classical decision about the next iteration. The graph may contain loops and parallel branches. Draw dependencies before adding durations. Summing every span overcounts parallel work; timing only the quantum kernel omits most of the service path.

Give each span a clock, parent, start and end time, resource, input/output size, cache state, and evidence label. Distinguish client time, service queue time, control time, and measured circuit duration. Distributed clocks require synchronization or causal identifiers. A trace that reports microsecond precision from unsynchronized hosts creates false ordering.

Decision rule: Optimize the critical path and accepted-result objective together; utilization alone is never the user outcome.

Latency has queue, dispatch, execution, and return terms

Build an end-to-end timing equation and distinguish local integration from remote batch access.

Quantum-centric supercomputing takes this seriously as system design. Treat the quantum processor as an accelerator in a broader high-performance-computing and cloud environment — the conceptual peer of a GPU, not of the computer. The moment you do, the secondary concerns become primary: latency, queueing, data movement, orchestration, reproducibility, and the choice of classical baseline. Those are the terms on which hybrid claims live or die.

Quantum program benchmarks require end-to-end task and resource definitions rather than isolated device metrics. [benchmarking-2025]

Count circuit calls from the estimator contract

Variational and other iterative algorithms repeatedly request expectations or samples. If an iteration evaluates GG measurement groups at SgS_g shots each and uses RR parameter settings, the nominal execution count follows from those choices and any batching. Gradient methods may multiply parameter settings; error mitigation may multiply noise scales or randomized variants. Write the call formula before measuring so hidden service retries do not look like algorithmic work [vqe-2014].

Shots are not a time unit. A shot includes reset or preparation, circuit execution, measurement, and perhaps a gap; batches add setup and transfer. Some providers stream results, others return only after a job completes. Record shots requested, shots accepted, rejected records, repetitions caused by service failure, and result payload. Statistical precision and wall time are coupled through this complete denominator.

Shots and optimizer iterations amplify traffic

Connect observables, circuit groups, shots, parameters, and iteration count to QPU calls and data flow.

Evaluate a proposed hybrid workflow with the application scorecard: application score = evidence strength − baseline gap − integration risk − hardware risk . The baseline term comes first in practice even though it appears second in the formula. A quantum subroutine has no application value unless the workflow beats, complements, or usefully probes something relative to strong classical methods — and "strong" means the best classical method, not the most convenient one to outperform.

NISQ-era hybrid and variational workflows depend on sampling, optimization, and hardware constraints whose costs must be included. [qiskit-docs] [vqe-2014]

Batching trades launch overhead against responsiveness

Combining circuits into a batch can amortize authentication, serialization, compilation, target loading, and scheduler overhead. Larger batches can also wait longer in a queue, consume more memory, hold a calibration snapshot too long, delay adaptive decisions, and waste work when an early result would have stopped the loop. There is no universally optimal batch size.

For the twenty-iteration fixture, compare per-group calls with one batch per iteration and with a larger batch spanning several parameter settings. Report accelerator utilization, end-to-end latency, time to first useful result, queue exposure, and wasted circuits after convergence. Require the promised counterexample: a strategy that improves quantum-kernel utilization while worsening the workflow metric that the user actually selected.

Batching changes both utilization and feedback

Model the trade between amortized overhead, stale decisions, concurrency, and accelerator occupancy.

For timing decisions, keep the expected-value discipline: EVPr(technical success)VCwaitCcapital\operatorname{EV}\approx\Pr(\mathrm{technical\ success})V-C_{\mathrm{wait}}-C_{\mathrm{capital}} . Hybrid workflows can justify learning projects, partnerships, or prototypes well before fault tolerance. They justify those things only when the probability term is honest and the integration cost is counted. A workflow that needs three uncertain hardware generations to pay off is a research position, and it should be priced as one.

A useful physical implementation must integrate control and measurement with the surrounding classical system. [openqasm3]

Compilation and target state need cache semantics

Parameter binding may reuse a compiled structure, but only while topology, native gate set, calibration assumptions, and control options remain compatible. A cache key should include circuit structure, compiler version, target identifier, and relevant options. Record cache hits and invalidations. Reusing an artifact against a changed target can be faster and wrong.

Intermediate representations support boundaries between languages, compilers, and runtimes. OpenQASM defines a public circuit-language specification and QIR defines an intermediate-representation effort under official governance [openqasm3] [qir-alliance-specification]. A standard representation improves portability only for semantics it actually specifies; calibration, resource constraints, pulse behavior, and provider scheduling may remain target-specific.

The classical baseline owns the whole workflow

Give CPU/GPU methods equal tuning, include preprocessing/postprocessing, and compare the buyer's actual metric.

Suppose a team proposes a hybrid quantum-classical workflow for materials simulation. The weak version of the memo opens with the quantum algorithm. The strong version opens with everything else: the current computational-materials workflow, the buyer's actual problem, the classical baseline method, and the metric that decides purchase. Only then does it ask where a quantum subroutine might help.

Current claims about quantum-centric supercomputing products or measured HPC integration require new primary system sources beyond the registered reviews. [full-stack-review] [benchmarking-2025]

Classical compute can be on the critical path

Optimizers, Hamiltonian preprocessing, tensor contraction, decoding, mitigation, and validation can dominate between quantum calls. Place them on explicit CPU or GPU resources and trace data transfer. If a GPU kernel overlaps quantum queueing, the critical path may be shorter than the sum; if an adaptive parameter update waits for all measurements, it may serialize the entire loop.

Provisioning should consider occupancy and cost, not only elapsed time. A hybrid workflow can leave expensive classical nodes idle while waiting for a remote QPU, or reserve a QPU while classical preparation stalls. Co-scheduling and asynchronous execution can improve utilization but make reproducibility harder. Archive event order, seeds, parameter history, and partial failures.

A trace reveals whether the QPU is material

Instrument every span, preserve backend/calibration metadata, and report QPU contribution separately from end-to-end outcome.

Trace the full loop. What data moves from the classical system to the quantum device, in what format, at what cost? What is the end-to-end latency of one iteration, including the queue? Which classical optimizer or verifier closes the loop, and how many iterations does the method need? What hardware assumptions does the subroutine make, and how are outputs validated against ground truth or experiment?

Quantum processors operate as components in a broader classical compilation, control, execution, and post-processing stack. [full-stack-review] [qir-alliance-specification]

Failure and retry semantics affect scientific validity

Differentiate a provider rejection before execution, a partial batch, lost network response, calibration invalidation, and a circuit completed with low-quality data. Retrying only failed circuits can change the temporal distribution of measurements; retrying an entire batch consumes cost and may mix calibration periods. The workflow policy should say which results are combined and how temporal drift is tested.

Idempotency matters. A client retry after a timeout must not silently execute and bill the same job twice unless that is the declared policy. Use stable request identifiers and store provider job IDs. If post-processing fails, preserve raw results so quantum work need not be repeated. A resumable workflow checkpoints the optimizer state, circuit set, target record, and accepted measurement data.

Minimum performance report

Publish the dependency graph, complete trace, call formula, batch policy, target and software versions, raw timing spans, critical path, result-quality metric, and matched baseline. State which durations are observed, provider-reported, or synthetic. Include failed and retried jobs. With those fields, another engineer can distinguish a faster quantum kernel from a faster workflow and can rerun the batching decision when queue or target conditions change.

Measure accelerator value at the workflow boundary

Begin with a typed kernel whose inputs, outputs, precision, and failure behavior are small enough to audit. A variational call, for example, receives parameters and a circuit/observable bundle, then returns estimates with shot counts, uncertainty, backend identity, and calibration context. The surrounding program owns parameter generation, grouping, optimizer state, convergence tests, checkpointing, and validation. Treating the kernel as a function prevents a notebook from hiding data preparation or classical work outside the reported runtime.

The timing model should reconstruct each iteration from queue wait, dispatch, compilation or cache lookup, upload, execution, measurement, return transfer, aggregation, and optimizer time. Concurrency changes the critical path: batches may amortize dispatch but delay feedback, and parallel jobs may compete for the same QPU or classical post-processing service. Report distributions and warm/cold behavior rather than one favorable trace.

Call volume follows the measurement plan. If GG observable groups use SgS_g shots at each of PP parameter points for II iterations, the acquisition record must conserve those submitted and completed shots, including retries and rejected results. Adaptive allocation changes the formula, so the trace should preserve the decision that assigned each additional shot. Network bytes and stored result volume can then be derived from actual payload schemas instead of guessed from qubit count.

The classical baseline receives the same input, objective, accuracy target, and wall-clock boundary. Include its preprocessing, tuning, hardware, stopping rule, and uncertainty. A hybrid workflow is favorable only on a buyer-relevant outcome—quality at time, energy, or cost—not because the QPU kernel is interesting in isolation. If classical verification dominates or the answer cannot be checked at the requested scale, that limitation belongs in the acceptance contract.

Finally, distinguish orchestration evidence from computational advantage. A successful trace proves that services exchange compatible data and that accounting closes. Repeated application results can establish reliability under the named operating window. Advantage requires a matched baseline and uncertainty strong enough to exclude ordinary engineering variation. These rungs let an HPC team improve integration without overstating what the quantum subroutine has demonstrated. Preserve failed, canceled, and retried spans as well as successful ones; deleting them understates service demand and can make queue or reliability improvements appear computational.

Claim-to-source ledger

Quantum processors operate as components in a broader classical compilation, control, execution, and post-processing stack. [full-stack-review] [qir-alliance-specification]

Quantum program benchmarks require end-to-end task and resource definitions rather than isolated device metrics. [benchmarking-2025]

NISQ-era hybrid and variational workflows depend on sampling, optimization, and hardware constraints whose costs must be included. [qiskit-docs] [vqe-2014]

A useful physical implementation must integrate control and measurement with the surrounding classical system. [openqasm3]

Current claims about quantum-centric supercomputing products or measured HPC integration require new primary system sources beyond the registered reviews. [full-stack-review] [benchmarking-2025]

Hybrid workflow trace and batching simulator

Format: Synthetic OpenTelemetry-like spans plus a small timing/call-count model for CPU/GPU/QPU/storage/queue stages under batch-size and shot/iteration parameters.

Artifact acceptance contract
inputoutputreject when
assumptions, units, source/date, workloadraw and derived values, uncertainty, commandunits or comparison scope are missing
synthetic fixture labeled syntheticdeterministic record and PASS lineattributed to real hardware
named baselinesame task and denominatormetric or evidence class differs
def simulate(config):
    calls = config["iterations"] * ((config["groups"] + config["batch"] - 1) // config["batch"])
    completed_shots = config["iterations"] * config["groups"] * config["shots"]
    spans = {"queue":config["dispatch_s"] * calls, "batch_wait":config["batch_wait_s"] * (config["batch"] - 1) * config["iterations"], "qpu":config["shot_s"] * completed_shots, "classical":config["classical_s"]}
    return {"calls":calls, "shots":completed_shots, "bytes":completed_shots * config["bytes_per_result"], "spans":spans, "parents":{name:"workflow" for name in spans}, "total":sum(spans.values()), "task":(config["objective"], config["input_id"])}
config = {"iterations":20,"groups":4,"shots":1000,"batch":5,"dispatch_s":.2,"batch_wait_s":0.0,"shot_s":4e-6,"classical_s":1.8,"bytes_per_result":8,"objective":"energy-v1","input_id":"molecule-X"}
baseline = simulate(config)
unbatched = simulate({**config, "batch":1})
counterfactual = simulate({**config, "dispatch_s":.01, "batch_wait_s":.03})
counter_unbatched = simulate({**config, "batch":1, "dispatch_s":.01, "batch_wait_s":.03})
classical_baseline = {"task":("energy-v1","molecule-X"), "seconds":2.4}
assert baseline["calls"] == 20 and baseline["shots"] == 80000 and baseline["bytes"] == 640000
assert abs(baseline["total"] - 6.12) < 1e-12 and baseline["spans"]["qpu"] < baseline["total"]
assert baseline["total"] < unbatched["total"] and counterfactual["total"] > counter_unbatched["total"]
assert set(baseline["parents"].values()) == {"workflow"} and baseline["task"] == classical_baseline["task"]
print(f"PASS: 63 workflow evidence calls={baseline['calls']} total={baseline['total']:.2f}s qpu={baseline['spans']['qpu']:.2f}s batching_reversal={counterfactual['total']:.2f}>{counter_unbatched['total']:.2f}")

Verification: Span parentage reconstructs total time; calculator conserves call counts and data volume; baseline and hybrid paths share the same objective and input; no result reports QPU time as total time.

Commissioned exercise

Prompt: Instrument or model a 20-iteration hybrid loop with four observable groups, three shot budgets, and two batching strategies; compare with a declared classical-only path.

Deliverable: Trace JSON, timing/call/data table, end-to-end comparison, QPU fraction, and the condition under which the selected batch policy reverses.

Pass condition: All time terms and calls reconcile, the classical baseline solves the same task, sampling assumptions are explicit, and no orchestration result is labeled advantage.

Verifiable solution

Format: Reference synthetic spans and batching-sensitivity report.

Verification: Automated trace validator checks nesting, duration sums, call-count formulas, and equal task/input identifiers across baseline and hybrid runs.

Twenty iterations, four observable groups, and batch size five produce 20 QPU dispatches. Queueing contributes 4.00 seconds, QPU execution 0.32 seconds, and the classical path 1.80 seconds, totaling 6.12 seconds. The QPU fraction is 5.23%, so reporting only QPU time would reverse the system conclusion.

Companion work

Artifacts for this chapter

These entries resolve to checked-in local source. Commands are reproduced exactly from the chapter manifest, and source-embedded fixtures are exported as direct downloads.

  1. Reproduce or test

    python3 tools/validate_briefs.py --briefs data/editorial_briefs_36_63.json --from 36 --through 63 --check-rewritten-sources --execute-artifacts

Provenance

Sources and review

  1. QIR Alliance. Quantum Intermediate Representation specification and projects. Linux Foundation Joint Development Foundation. 2026official technical specification
  2. OpenQASM Technical Steering Committee. OpenQASM 3 specification. Linux Foundation Joint Development Foundation. 2026official technical specification
  3. IBM Quantum. Qiskit documentation. IBM. 2026official documentation
  4. Alberto Peruzzo et al.. A variational eigenvalue solver on a photonic quantum processor. Nature Communications. 2014primary paper
  5. Lieven M. K. Vandersypen et al.. A look at the full stack. Nature Reviews Physics. 2021peer-reviewed perspective
  6. Timothy Proctor et al.. Benchmarking quantum computers. Nature Reviews Physics. 2025peer-reviewed perspective

The load-bearing claims in the chapter are mapped inline to this registered source set. A citation supports only the bounded claim beside it.

Cite this chapter