Pruning Quantum Circuits Using Measurements Already Paid For

Finding a small subnetwork inside a large model usually costs more than training the large model once. The standard recipe, iterative magnitude pruning, trains, removes the smallest weights, rewinds, and trains again, several times over. On a quantum computer this cost gets worse. Each gradient of a parameterized quantum circuit, a sequence of tunable gates whose angles play the role of weights, is estimated by running the circuit at least twice per parameter (the parameter-shift rule). Every one of those runs needs many repeated measurements, called shots. Pruning still matters on near-term noisy hardware, though, because every extra layer of gates lets the quantum state decay toward noise. Shallower circuits are not only cheaper; they are more accurate on real devices.

This proposal rests on a simple fact. For the common rotation gates, the loss as a function of any single angle is an exact sinusoid. The circuit runs that the parameter-shift rule already performs to get the gradient are enough to reconstruct that sinusoid. They therefore tell us, at no additional quantum cost, exactly how much the loss would change if that angle were snapped to a value at which the gate compiles away entirely, such as zero. We propose an optimizer that reads these free "removal prices" at every step. It weighs each price against how much physical circuit depth the removal would save on the target hardware compiler, and it permanently deletes gates during training. The result is a compiled, shallow circuit at roughly the measurement budget of training the dense circuit once, with no separate search phase.

Core Claim

Consider a gate $R(\theta_i)=\exp(-i\theta_i P/2)$, where $P$ is a Pauli operator. Hold all other angles fixed. The loss then satisfies

$$L(\theta_i) = a_i + b_i\cos\theta_i + c_i\sin\theta_i ,$$

where $a_i, b_i, c_i$ are constants determined by the rest of the circuit. These three constants follow exactly from the three values $L(\theta_i)$, $L(\theta_i+\pi/2)$ and $L(\theta_i-\pi/2)$. Those are precisely the evaluations a parameter-shift gradient step computes, since the unshifted loss is evaluated anyway.

For any "collapse value" $c$ at which the gate disappears or shrinks after compilation, the exact single-parameter removal cost is $\Delta_i(c) = L(c) - L(\theta_i)$. Collapse values include $0$ and $2\pi$, and the discrete angles that Quantum Neural Network Compression (CompVQC) showed reduce compiled gate counts. We rank candidates by

$$s_i = \frac{D_i(c)}{\max(\Delta_i(c), \epsilon)},$$

where $D_i(c)$ is the compiled two-qubit depth saved, read from a look-up table of compiler output, and $\epsilon$ is a small floor. The highest-scoring gates are removed between gradient steps.

Controlled rotations obey a four-term shift rule. Their single-parameter loss has two frequencies, and the four shifted evaluations supply the extra coefficients. Generalizing the reconstruction to these gates is part of the work rather than an assumption.

The claim we will test has two parts. First, this procedure matches the compiled depth and accuracy of iterative or ADMM-based compression at a fraction of their total shot count. Second, under hardware noise it beats "train dense, then prune" at equal shots. The reason for the second part is that every later training step runs on a shallower circuit, whose gradients are less corrupted by decoherence. Evaluating the noise resilience of variational quantum algorithms models the noise-induced deviation of the loss as roughly linear in depth, $R_{rel}\approx\alpha\gamma d$, where $\gamma$ is the noise strength and $d$ the depth. That relation is the source of this prediction. Because of it, we also expect the second advantage to vanish in noiseless simulation, and we state that expectation up front.

Position Relative to Prior Work

Several papers motivate the measurement-cost problem. Investigating the Lottery Ticket Hypothesis for Variational Quantum Circuits runs classical-style iterative magnitude pruning on variational circuits. It finds compact winning subcircuits, for example 26% of parameters at 97.5% accuracy on Iris, and on Wine pruning lifted a stalled 45% dense model to 80%. However, it pays for repeated full retraining, works only in simulation, and zeroes angles without regard to whether entangling gates actually disappear after compilation. Adaptive pruning-based optimization of parameterized quantum circuits (PECT) prunes and regrows parameters during molecular energy optimization. On LiH it reports 28% lower depth and 42% fewer two-qubit gates, but it acknowledges more total function evaluations than unpruned training on simple ansatze. Both papers show that pruning helps trainability and also show that the search is expensive. Our method keeps the benefit and makes the search free.

Two papers supply methods we reuse. CompVQC supplies the insight that compiled depth, not parameter count, is the right cost, along with its look-up-table profiling of the Qiskit compiler. We keep both. We replace its iterative ADMM optimization, which alternates parameter updates with projections onto discrete values, with a removal rule computed from data the optimizer already has. WSBD and QOC supply the evidence that importance changes during training. They freeze low-importance parameters temporarily to save parameter-shift runs, but they never shrink the deployed circuit. WSBD in particular argues that permanent early pruning can hurt trainability. We take that warning seriously. Removed gates stay on probation: re-inserting a gate at angle zero has a gradient that costs only two circuit runs, and we sample that check occasionally to regrow gates whose re-insertion gradient becomes large.

Two papers constrain the design. LiePrune prunes in one shot by merging gates through their Lie algebra generators, an algebraic description of each gate. It compresses classifiers 8 to 10 times but leaves high energy error on LiH even after fine-tuning. That result warns that approximate one-shot merging is too coarse for chemistry. Our removal cost is exact for one parameter, and it is applied gradually, one confirmed removal at a time. Symmetric Pruning in Quantum Neural Networks and Training-Free Quantum Architecture Search take a different route. The first removes gates using known problem symmetries; the second picks compact architectures before training, using cheap proxy scores. Both are complementary starting points rather than competitors for pruning a given over-parameterized circuit.

Research Program

The first component is the estimator. For Pauli rotations, the sinusoid reconstruction is exact in expectation but noisy under finite shots. We will derive the variance of $\Delta_i(c)$ as a function of the shot count and use it as a confidence threshold: a gate is removed only if its upper-confidence removal cost is below a tolerance. For controlled rotations and the two-qubit blocks of hardware-efficient ansatze, we will derive the multi-frequency reconstruction from the four-term shift evaluations. For excitation operators in UCCSD, the unitary coupled-cluster ansatz used in chemistry, we will check which shift rules apply and fall back to one extra evaluation where they do not.

The second component handles interactions between gates. The removal costs are exact only one parameter at a time, and removing several gates together can interact. We therefore remove at most $k$ gates per step, chosen to be far apart in the circuit's dependency graph. We then verify the loss change on the next step's unshifted evaluation, which is again free, and roll back if the combined change exceeds the summed predictions by more than the noise margin.

The third component is compile-aware scoring. Look-up tables mapping gate type and angle to compiled two-qubit depth will be built for IBM heavy-hex coupling maps. Removals that eliminate an entire entangling block are credited with the routing overhead they also remove.

The fourth component is accounting. Every method is charged in total shots, summed over training, search, and any fine-tuning. Results are reported as curves of compiled two-qubit depth and task quality against cumulative shots.

Baselines

The naive reference point is dense training with Adam and parameter-shift gradients, followed by deployment of the unpruned circuit. It anchors both the shot cost and the noisy-hardware quality floor.

The strongest existing method on depth is CompVQC's compilation-aware ADMM compression. It reports a 2.57× reduction in total circuit depth on MNIST-2 with less than 1% accuracy drop, and up to 20% higher accuracy than uncompressed models on IBM hardware. We will reimplement it on the same circuits, data, and look-up tables, give it the same hyperparameter-tuning budget, and charge its full ADMM iteration cost in shots. Beating it means matching its depth reduction within 1% accuracy at substantially fewer total shots (we target at least 3×). Alternatively, beating it means reaching greater depth reduction at equal shots.

For chemistry, the strongest baseline is PECT on LiH with UCCSD, which reports 28% depth and 42% two-qubit gate reductions within chemical accuracy. Beating it means equal or larger reductions within chemical accuracy at fewer function evaluations. PECT's own evaluation count relative to dense training is the comparison point. For iterative magnitude pruning on Iris and Wine we use the lottery-ticket paper's 26% parameters at 97.5% accuracy and its 80% Wine result. That paper reports no shot count, and I found no reported result on Lacuna for the measurement cost of iterative magnitude pruning on quantum circuits, so we will measure it ourselves. For training-time efficiency, WSBD's report of convergence 63.9% faster than Adam on TFIM, the transverse-field Ising spin model, is the reference. Our method should be no slower to converge while also shrinking the circuit.

Three ablations isolate the key ingredients. The first applies the same score once, after dense training finishes ("train then prune"), at equal total shots. It tests whether removal during training matters. The second sets $D_i$ to a constant and allows only zero as the collapse value, which tests whether the compile-aware score matters. The third disables probation and regrowth, which tests WSBD's concern about permanent removal.

Why not just…?

Why not just train densely, then apply a compile-aware one-shot prune with brief fine-tuning? This is the most serious threat, and in noiseless simulation we expect it to roughly tie our method on final accuracy and depth. The difference should appear only under noise. Under noise, post-hoc pruning trains on the deep circuit throughout, so its gradients are degraded in proportion to depth, whereas our method trains increasingly shallow circuits. The train-then-prune ablation, run at equal shots under IBM noise models across a sweep of noise strength, settles this. If the gap does not grow with noise strength, the claim fails and the contribution shrinks to an accounting tool.

Why not just use CompVQC's ADMM? ADMM produces the right kind of circuit but reaches it by iterating projection and update steps that each cost quantum evaluations, and its scaling past small circuits is undemonstrated. The shot-matched comparison on MNIST-2 decides whether our free removal cost loses depth quality in exchange for its savings.

Why not just start from a compact circuit, such as a shallow hardware-efficient ansatz or one found by training-free architecture search? Compact starts often fail to train. TF-QAS reports that a 3-layer hardware-efficient ansatz with 42 gates failed on BeH$_2$, while a searched 35-gate circuit succeeded, and dense Wine circuits stalled at 45%. These starting points are complementary rather than competing, since our method can prune a searched circuit further. We will include a depth-matched shallow ansatz as a control on TFIM and LiH.

Why not just freeze parameters as WSBD or QOC do? Freezing saves training runs but leaves every gate on the chip, so the deployed circuit suffers full decoherence. We will run WSBD with matched shots and report its deployed accuracy on hardware-noise simulation, expecting it to match our training speed but not our deployed accuracy.

Proposed Experiments

The classification benchmarks are Iris and Wine, using the lottery-ticket circuits, and MNIST-2 and 2-class Fashion-MNIST, using CompVQC-style circuits. The Hamiltonian benchmarks are TFIM and MaxCut. The chemistry benchmark is LiH with UCCSD and $k$-UpCCGSD, from Generalized Unitary Coupled Cluster Wave functions for Quantum Computation. All runs use noiseless and noisy simulation with IBM-calibrated noise models. A small validation run of the best MNIST-2 circuits is planned on an IBM processor, as CompVQC did on ibm_perth and ibm_lagos.

The metrics are compiled two-qubit depth, task accuracy or energy error relative to chemical accuracy, and cumulative shots. The decisive checks are three. First, the predicted $\Delta_i(c)$ must correlate with the measured loss change after removal; a rank correlation well above the 0.61 of TF-QAS's cheapest proxy would show that the free price is trustworthy. Second, the method must dominate CompVQC and iterative magnitude pruning on the depth-versus-shots curve. Third, the advantage over train-then-prune must widen as hardware noise strength increases. LiH serves as the precision stress test that LiePrune failed: if our method cannot hold chemical accuracy there at PECT-level depth reductions, the exactness argument does not survive interactions among many gates.