One-Clean-Qubit Simulation of Quantum Catalytic Logspace with Measurements
Abstract
We prove that polynomial-time quantum catalytic logspace computations with intermediate measurements and resets can be simulated using one clean qubit and otherwise maximally mixed qubits. The source may use logarithmic-space classical control and polynomially many catalytic qubits, whose arbitrary unknown state must be restored exactly, including its correlations with an inaccessible reference. The simulator has polynomial size, is deterministic-logspace-uniform, and is unitary until a final measurement with inverse-polynomial signed acceptance bias. Thus under this bias convention, extending the unitary containment of Buhrman et al. (TQC, 2025). The main difficulty is to avoid storing a polynomial-length measurement history in initialized memory. We express the source’s acceptance bias as a normalized trace involving the inverse of a channel-history matrix. Although the history matrix can be poorly conditioned, complete positivity bounds the Frobenius norm of its inverse. A nuclear-norm regularization estimate then controls the required trace with no dependence on the exponential catalyst dimension. We implement the resulting bounded spectral filter by coherent phase estimation and extract its relevant block through a reflected unitary trace test. The logarithmic auxiliary space is included in the maximally mixed input at only an inverse-polynomial loss in bias.
Note. This paper was generated entirely by AI, including MiMo, using an automated research pipeline developed by Chenghua Liu and Hanyu Li.
1 Introduction
Catalytic space separates initialized work memory from borrowed memory whose unknown contents must be restored. In the classical setting, Buhrman et al. [1] showed that this additional memory can support computations not known to fit in the initialized workspace alone. Quantum catalytic space imposes a stronger restoration requirement: a borrowed register must be returned in its original state for every quantum input to that register. This also preserves its entanglement with any inaccessible reference. The model asks how much computation a large register can support without consuming the information it contains.
Buhrman et al. [2] introduced quantum catalytic space and proved that its unitary logspace computations admit one-clean-qubit simulations. They left open the corresponding containment when intermediate measurements are allowed. The usual deferred-measurement construction does not settle this question. It stores measurement outcomes coherently, requiring a fresh initialized register for a potentially polynomial-length history. Resets pose a related difficulty: unlike unitary conjugations, they need not be contractions in the Hilbert–Schmidt norm.
We prove the containment for the measured model. The simulator does not reproduce the source state or retain its measurement outcomes. Instead, it recovers the sign of the source’s acceptance bias from a normalized trace. Exact restoration provides an identity on the entire catalyst operator space, not merely on its diagonal coordinates. This identity supplies the trace multiplicity needed to offset the size of the catalyst.
1.1 Model and result
We use the polynomial-length, logspace-uniform general-circuit formulation of quantum catalytic space in [2, Definitions 15, 18–24 and 30]. For an input of length , the source has an initialized work register of qubits and a catalytic register of qubits. Its live classical controller, including all retained measurement outcomes, counts toward the work-space bound. The computation has a worst-case polynomial time bound and may use computational-basis measurements, resets, and classically controlled constant-local gates. There is no uncharged classical transcript available for later queries. The input is classical and is available to the logspace circuit generator.
Writing for the overall channel before the final output is read, we require a work state such that, for every reference register and every state ,
| (1) |
Lemma 2 shows that this product form follows already from exact restoration of the catalyst marginal for every catalyst state. In particular, it remains valid after the live controller is included in . A designated work qubit is the output; its probability of being is denoted by . The bounded-error class uses on yes instances and on no instances; is the exact version.
For we use the signed-bias convention of [2, Definitions 49–51]. A circuit starts with one qubit in and polynomially many qubits in the maximally mixed state, applies a polynomial-size logspace-uniform unitary circuit, and measures the clean probe at the end. There is a polynomial such that acceptance has probability at least on yes instances and at most on no instances. We do not assert constant bias within a single one-clean-qubit circuit.
We fix the same effective elementary-gate convention for the source and the simulator. Constant-local unitaries are described using phase and rotation gates and classical reversible gates; adjoints, complex conjugates, and controlled versions have logspace-generated descriptions. This closure requirement is part of the gate-description convention. Additional angles introduced by the simulation are computed to inverse-polynomial accuracy in logarithmic space. Exact restoration is assumed for the original source channel; approximation is used only in the target construction. This distinction is relevant to the gate-set issues discussed in [2, Section 3.3].
Theorem 1.
Every polynomial-time, deterministic-logspace-uniform quantum catalytic computation in the model above, with bounded error, initialized work qubits, and polynomially many catalytic qubits, has a polynomial-size logspace-uniform simulation using one clean qubit and otherwise maximally mixed qubits. The simulation is unitary until its final measurement and has inverse-polynomial signed acceptance bias. Consequently, under the stated circuit and bias conventions,
The containment also holds for the exact class .
1.2 Method and related work
The proof uses a history-matrix inverse to represent a product of channel matrices. Its conditioning may be exponentially poor. Approximating the entire inverse in operator norm would therefore give an unsuitable simulation. What we need, however, is only a particular normalized trace. Every nonzero block of the inverse is the matrix of a channel, so complete positivity bounds the inverse’s Frobenius norm. A regularization estimate in nuclear norm then controls the trace error at an inverse-polynomial regularization scale. The catalyst dimension cancels from this bound. This use of channel structure, together with the catalytic trace identity, is the main step specific to the measured catalytic model.
Measurement elimination in ordinary space-bounded quantum computation was established by Fefferman and Remscrim [3]. For a computation using space and time , their construction uses space and time. Applying that bound with does not provide a polynomial-time one-clean-qubit simulation when is polynomial. The present argument instead treats the initialized and catalytic parts separately and uses exact restoration to control a normalized trace rather than the whole computation.
The circuit ingredients for processing this trace are established ones. Normalized unitary trace estimation is native to the one-clean-qubit model [4, 5]. Cade and Montanaro [6] gave one-clean-qubit algorithms for smooth spectral functions of log-local Hamiltonians. Edenhofer, Hasegawa, and Le Gall [7] treated spectral sums in a block-encoding input model, including trace extraction with logarithmically many block ancillas. More recently, Ji et al. [8] studied DQC1-completeness of normalized spectral traces under approximation-theoretic hypotheses. These results concern trace estimation once a suitable matrix representation has been obtained; the catalytic reduction and its dimension-independent regularization bound supply that representation here.
Our implementation uses linear combinations of unitaries and the compression-to-walk construction underlying qubitization and singular value transformation [9, 10]. We give a direct coherent phase-estimation implementation of the required filter to keep its logarithmic auxiliary space and deterministic logspace uniformity explicit. A reflection then extracts the desired ancillary block from a unitary trace. Thus the block ancillas need not be physically initialized in the final circuit.
2 The catalytic trace identity
We first express an adaptive computation as a fixed channel sequence. A computational-basis measurement is implemented by resetting a work bit, copying the measured basis value into it, and dephasing that bit. Later controlled gates read the resulting classical configuration. Irreversible controller updates use reversible Boolean gates and resets on logarithmic work space. By scanning the polynomially many tape addresses, the emitted schedule can be made independent of measurement outcomes. Appendix A gives the implementation, including conditional resets and the accounting for temporary work bits.
This is the mixed-state circuit formalism of Aharonov, Kitaev, and Nisan [11], with the work-space accounting made explicit. After this conversion and padding, write
| (2) |
Each elementary map is a constant-local unitary conjugation, a one-qubit dephasing, or a one-qubit reset. In particular, it is completely positive and trace preserving (CPTP) on the whole computational Hilbert space, including controller configurations unreachable from the clean input. We may take and and pad their bounds as functions of . For small inputs, all asymptotic bounds can be read with replaced by . Set
Thus is polynomial, whereas may be exponential.
Lemma 2 (Exact restoration).
Let be a CPTP map such that for every state on . There is a state on such that for every operator on . Consequently, also preserves arbitrary correlations of with an inaccessible reference.
Proof.
Since states span the operator space, . Let be the normalized maximally entangled vector, and put . The state has marginal . Put . Then . Positivity implies , since the squared Frobenius norm of this operator is . Hence . The range of is , so for a state . Comparing coefficients of in the two Choi states gives for all . Linearity proves the claim, and tensoring this identity with proves the reference statement. ∎
Applying the lemma to proves (1) from marginal restoration alone. It also shows why including the final controller and temporary registers in the work output does not impose an additional catalytic condition.
Vectorize operators by , and order the doubled registers as . Bars label the second operator-coordinate copy; they do not denote additional input information. A unitary conjugation by has matrix , up to this fixed reordering. Let be the -dimensional Liouville matrix of , and set . Exact restoration gives
| (3) |
This is an identity on all catalyst operator coordinates, including the off-diagonal ones.
Define the output observable and signed acceptance bias by
The vector is normalized because . It can be prepared by creating Bell pairs and applying to the output half in the first copy, where are Pauli matrices. Retaining this sign is important in the later trace test. Equation (3) yields
| (4) |
Indeed, the trace over each catalyst coordinate is . For a bounded-error source, on yes instances and on no instances; for an exact source, .
The factor in (4) is specific to restoration of the full operator space. Merely preserving the maximally mixed state does not suffice: the completely depolarizing channel has Liouville trace , whereas the identity channel has Liouville trace . Preserving only the computational-basis states similarly controls just diagonal coordinates. The stronger multiplicity in (4) is what permits the dimension cancellation below.
3 Regularizing the channel history
We place the channel product in a corner of an inverse history matrix. The inverse need not have polynomial operator norm. Its blocks, however, satisfy a common Frobenius bound, and that is enough to approximate the trace in (4). For a matrix, denotes operator norm, Frobenius norm, and nuclear norm.
Lemma 3 (CPTP Frobenius bound).
If is the Liouville matrix of a CPTP map on a -dimensional system, then .
Proof.
The unnormalized Choi matrix is positive semidefinite by complete positivity [12] and has trace by trace preservation. Its entries are a reshuffling of the entries of , so the two Frobenius norms agree. If are its eigenvalues, then
Let be the least power of two with . On a -state clock and the Liouville register, define
| (5) |
The inverse formula follows from . In particular, . Apart from its diagonal identity blocks, the only nonzero blocks of are for . Each such product is the Liouville matrix of a CPTP map. Since there are at most nonzero blocks, Lemma 3 gives
| (6) |
This bound does not require a polynomial lower bound on the smallest singular value of .
Lemma 4 (Nuclear-norm regularization).
For an invertible matrix and , put
Then
| (7) |
Proof.
If is a singular value decomposition, then is times the diagonal matrix with entries
times . The entries are nonnegative. The inequality is ; summing over the singular values proves (7). ∎
Define the contraction
| (8) |
| (9) |
Using , we obtain
| (10) |
The exponential factor in the Frobenius bound cancels against the trace normalization supplied by exact restoration. Hence an inverse-polynomial suffices even when the inverse itself is ill-conditioned. The bounded matrix , rather than in operator norm, is the object implemented next.
4 The one-clean-qubit simulation
A block encoding of a contraction is a unitary such that . The all-zero ancillas specify a matrix block. They are not assumed to be initialized in the final simulator; the trace readout will extract that block from a maximally mixed input.
4.1 Encoding the history matrix
Every elementary channel matrix has a three-ancilla block encoding of . For a unitary channel, is unitary. For one-qubit dephasing, , where juxtaposition denotes a tensor product of Pauli matrices. The reset has Liouville matrix
| (11) |
The eight signed Pauli terms in (11), averaged with equal weights, therefore encode . For a unitary , use four copies of and the four terms ; their average is . For dephasing, use . An inactive clock value uses four copies each of and , encoding zero. The signs and factors of are phases of the selected unitaries, not probabilities.
Preparing three selector qubits with Hadamard gates, applying the selected term, and undoing the preparation realizes each average. This is the constant-size linear-combination construction of [10, Lemma 52]. Multiplex the encoding of on clock value and the encoding of zero on , then cyclically increment the clock. The resulting unitary encodes . The zero blocks exclude both unused transitions and clock wraparound.
An additional selector, prepared in , selects or . Undoing this preparation gives a unitary with all-zero ancillary block
| (12) |
The multiplexers are implemented by enumerating clock values and source gate indices. Their controls act on bits and admit ancilla-free polynomial-size implementations, as described in Appendix A. Thus has polynomial size and a logspace-uniform description. It uses only qubits beyond the doubled data register.
Add a selector qubit and form the Hermitian unitary
Let project onto the all-zero block-encoding ancillas, leaving and the history/data register unrestricted. If their number is , then the compression of to this subspace is
| (13) |
In particular, . This dilation turns the regularized inverse into a scalar function of a Hermitian contraction.
4.2 Coherent spectral filtering
Lemma 5 (Coherent spectral filter).
Let , with and bounded by polynomials in and with logspace-computable descriptions. There is a polynomial-size, logspace-uniform unitary whose all-zero ancillary block is within operator norm of
The ancillary register has qubits.
Proof.
Put and . Since ,
| (14) |
This operator is block diagonal with respect to , with compression . Define the periodic function , where . On a -eigenvector with eigenvalue , the Hermitian operator has eigenvalue . Functional calculus in (14) therefore gives
| (15) |
where denotes the operator taking value at eigenphase . The scalar bounds
follow from and .
Apply coherent phase estimation to with an -qubit phase register. For phase label , apply to another qubit the real rotation whose zero-to-zero amplitude is , and then uncompute phase estimation. Such a rotation is , with . For a -eigenvector of phase , the resulting all-zero phase/rotation block has amplitude
| (16) |
The probabilities appear because phase estimation is uncomputed; no measurement or postselection is used.
Choose circular phase error and failure probability . The Lipschitz and range bounds imply a uniform error in (16). The explicit estimate in Appendix B gives error at most with
Phase estimation uses calls to when controlled powers are expanded into repetitions, hence polynomially many calls. Approximating the label-dependent rotations and elementary target operations within the remaining error budget gives operator-norm error at most : the phase-average estimate holds uniformly on every eigenspace of , and compression cannot increase operator norm.
For uniformity, enumerate the phase labels in the classical circuit description. The rotation amplitudes are
The denominator is at least and the amplitude has magnitude at most . Computing cosine, this quotient, and its inverse cosine to sufficient fixed precision takes logarithmic space and polynomial time; Appendix A gives explicit series and precision bounds. The circuit itself needs no arithmetic workspace for these values: it contains one classically specified, label-controlled rotation for each . All its large controls have logarithmic length. Finally compress the original block ancillas as in (15). The total ancillary space is . ∎
Set . Squaring the block matrix in (13) shows that the lower-left selector block of the filter is
| (17) |
Thus one inverse-polynomial scaling factor suffices for the whole channel product, rather than one such factor per channel.
4.3 Trace extraction and decision bias
Let be the filter circuit from Lemma 5. Separate its -dimensional register from all the remaining registers. The latter have qubits, including the doubled work register, clock, selector , and every block, phase, and rotation ancilla. There is an explicitly specified unitary on these small registers satisfying
It uses basis-state preparation and the Bell-pair preparation of . Define and
| (18) |
The selected input is and the selected output is . Consequently, (17) and (10) imply
| (19) |
Here the filter error remains at most after taking the selected block, and a -dimensional matrix of operator norm at most has normalized trace of magnitude at most .
The following trace cancellation is a direct block-readout construction. It gives the logarithmic-ancilla trace reduction used in one-clean-qubit spectral estimation, without initializing those ancillas; compare [7, Theorem 4.6].
Lemma 6 (Ancillary-block trace readout).
For and as above, a one-clean-qubit circuit has final probe expectation . Its other qubits are maximally mixed.
Proof.
Let . Introduce a maximally mixed qubit and define the unitary
Its normalized trace satisfies
| (20) |
Prepare the clean probe in , apply controlled-, and apply a Hadamard to the probe. For a maximally mixed target of dimension , the off-diagonal entry of the probe state before the last Hadamard is . Its final Pauli- expectation is therefore , which is by (20). This is the one-clean-qubit trace test [4].
The reflection involves only the small-register qubits. Write
where acts on the th small-register qubit and . Since is a projector, . The exponential factors into commuting Pauli rotations. Each Pauli-string rotation has an ancilla-free implementation, and . In a controlled implementation, the leading minus sign is retained as a phase on the control; the empty-set term is also retained. Adding the controls on and the probe leaves polynomial size and logarithmic-space uniformity unchanged, as detailed in Appendix A. ∎
Choose
| (21) |
All three reciprocals are polynomially bounded. Equation (19) then gives
| (22) |
As , we have
Accepting when the final probe is , Lemma 6 gives
| (23) |
A final NOT converts this to the convention that output means acceptance, without another qubit.
For completeness, the construction tolerates further approximation of target gates. Let bound the number of elementary gates in the complete unitary trace circuit, and put . Approximate each gate requiring numerical synthesis in operator norm by at most , retaining any exact source primitives as such. Telescoping products bounds the total unitary error by . For any input state, the change in a measurement probability is at most . Thus the weaker gap is valid for the synthesized circuit as well. Every required accuracy is still inverse-polynomial. Approximating these target operations does not alter the source channel to which the exact restoration hypothesis was applied.
The final circuit has one clean probe and maximally mixed qubits. The small-register qubits include every auxiliary register used for block encoding and filtering; the additional mixed qubit is . No initialized measurement record or hidden clean workspace is used. All operations before the final probe measurement are unitary. The channel multiplexer, the repeated walk calls in phase estimation, the phase-label rotations, and the small-register reflections each have polynomial size. Their gate descriptions are generated with logarithmic-space counters and arithmetic, as justified in Appendix A. Padding the source and target register bounds as functions of gives a fixed reciprocal-polynomial lower bound on the bias. This proves Theorem 1; exact source acceptance probabilities satisfy the same separation from .
References
- [1] Harry Buhrman, Richard Cleve, Michal Koucký, Bruno Loff, and Florian Speelman. Computing with a full memory: Catalytic space. In Proceedings of the 46th Annual ACM Symposium on Theory of Computing (STOC 2014), pp. 857–866, 2014. doi:10.1145/2591796.2591874.
- [2] Harry Buhrman, Marten Folkertsma, Ian Mertz, Florian Speelman, Sergii Strelchuk, Sathyawageeswar Subramanian, and Quinten Tupker. Quantum catalytic space. In 20th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2025), LIPIcs 350, pp. 11:1–11:24, 2025. doi:10.4230/LIPIcs.TQC.2025.11.
- [3] Bill Fefferman and Zachary Remscrim. Eliminating intermediate measurements in space-bounded quantum computation. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing (STOC 2021), pp. 1343–1356, 2021. doi:10.1145/3406325.3451051. Full version: arXiv:2006.03530.
- [4] E. Knill and R. Laflamme. Power of one bit of quantum information. Physical Review Letters 81(25), 5672–5675, 1998. doi:10.1103/PhysRevLett.81.5672.
- [5] Dan Shepherd. Computation with unitaries and one pure qubit. arXiv:quant-ph/0608132, 2006. arXiv:quant-ph/0608132.
- [6] Chris Cade and Ashley Montanaro. The quantum complexity of computing Schatten -norms. In 13th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2018), LIPIcs 111, pp. 4:1–4:20, 2018. doi:10.4230/LIPIcs.TQC.2018.4.
- [7] Roman Edenhofer, Atsuya Hasegawa, and François Le Gall. Dequantization and hardness of spectral sum estimation. arXiv:2509.20183v1, 2025. arXiv:2509.20183v1.
- [8] Zhengfeng Ji, Tongyang Li, Changpeng Shao, Xinzhao Wang, and Yuxin Zhang. DQC1-completeness of normalized trace estimation for functions of log-local Hamiltonians. Accepted to the 67th IEEE Symposium on Foundations of Computer Science (FOCS 2026). Preprint, arXiv:2604.01519, 2026. arXiv:2604.01519.
- [9] Guang Hao Low and Isaac L. Chuang. Hamiltonian simulation by qubitization. Quantum 3, 163, 2019. doi:10.22331/q-2019-07-12-163.
- [10] András Gilyén, Yuan Su, Guang Hao Low, and Nathan Wiebe. Quantum singular value transformation and beyond: exponential improvements for quantum matrix arithmetics. In Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing (STOC 2019), pp. 193–204, 2019. arXiv:1806.01838.
- [11] Dorit Aharonov, Alexei Kitaev, and Noam Nisan. Quantum circuits with mixed states. In Proceedings of the 30th Annual ACM Symposium on Theory of Computing (STOC 1998), pp. 20–30, 1998. doi:10.1145/276698.276708.
- [12] Man-Duen Choi. Completely positive linear maps on complex matrices. Linear Algebra and its Applications 10(3), 285–290, 1975. doi:10.1016/0024-3795(75)90075-0.
Appendix A Uniform implementation
A.1 Compiling the adaptive source
A computational-basis measurement of a qubit with a retained outcome is the channel obtained by resetting a work bit to , applying , and dephasing . On an input operator this gives , where on the measured system and its other registers. This is exactly the measurement instrument, including its effect on correlations. Overwriting an outcome is a reset on its work bit.
A logspace classical controller has polynomially many configurations. Its live tape, internal state, and input and quantum-tape head positions occupy bits. During one simulated transition, keep its old configuration fixed. Scan all relevant gate types and tape addresses, using equality tests on the old configuration to select the prescribed operation. The addresses occupy logarithmic space because the input and catalytic tape lengths are polynomial. Exactly the selected operation acts on each classical branch; the configuration is not updated midway through the scan.
Conditional measurements are handled by conditionally copying the addressed basis value into a zero work bit and then dephasing that bit. For a conditional reset, first reset a temporary work qubit to , conditionally swap it with the addressed qubit, and reset the temporary qubit again. On the inactive branch the addressed qubit is unchanged; on the active branch it is reset. The condition is classical on all reachable configurations. These implementations are nevertheless compositions of unitaries, dephasings, and resets on the entire Hilbert space, so they define CPTP maps even on unreachable inputs.
Compute the new classical configuration into a second logarithmic register using reversible Boolean gates, the old configuration, the outcome bits, and the read-only input. Uncompute the temporary equality flags, reset the old configuration and expired outcomes, and exchange the roles of the two configuration registers. Invalid encodings may be assigned a fixed halting transition. Halting configurations use identity operations, permitting padding to the worst-case polynomial time bound. All temporary registers are logarithmic and can be reset and reused in the source. The scan, the controller transition, and their local-gate decompositions have logspace-generated polynomial-length descriptions. This proves the fixed-channel representation (2) without assuming any initialized history outside the work-space bound.
A.2 Controls and circuit generation
The target construction can implement all its controls without initialized scratch qubits. For a specified -bit control string, let
A rotation conditioned on this string has generator , where is a one-qubit Pauli matrix. Expanding the product gives mutually commuting Pauli strings, so exponentiating the sum gives a product of Pauli-string rotations. Each such rotation is implemented by changing the Pauli bases to , computing parity onto one of its participating qubits with CNOT gates, rotating that qubit, and undoing the parity computation and basis changes. This uses no extra qubit. Purely diagonal phase gates are treated by the same expansion. In particular, a controlled NOT is exactly
which keeps the relative phase that would be lost by replacing with a Pauli rotation alone.
In every application, , so enumerating the subsets and their signed coefficients costs polynomial time and logarithmic space. Cyclic clock increments can be decomposed into successive controlled bit flips. Phase-label controls, the history selectors, and the reflections use the same construction. All scalar phases are retained when a unitary is subsequently controlled. Additional constant-local source primitives are handled under the gate-description closure convention stated in the introduction. Their controls from the clock, selectors, and phase estimation together still have logarithmic length.
An indexed source gate can be recovered by replaying the source’s logspace generator with a gate counter. The inverse of a polynomial gate list is generated by replaying this procedure in reverse index order and taking each gate’s adjoint. Complex conjugation is gatewise. Nested loops for the clock multiplexer and the phase-estimation powers require only a fixed number of polynomially bounded counters. They therefore preserve deterministic logspace uniformity.
A.3 Angles and precision
Only the extra target angles require numerical evaluation by the compiler. The fixed selector weights, the Fourier phases, the reflection phases, and the phase-filter rotations can all be evaluated with bits of precision. To make the latter claim explicit, reduce the argument of cosine to and use its Taylor series. After terms the error is at most . For inverse-polynomial error, suffices. The terms can be generated one at a time by their recurrence, maintaining only the current term and partial sum. A logspace-computable value of can be obtained, for example, from and the geometrically convergent arctangent series.
If is perturbed by , the filter value changes by at most . The quotient can also be evaluated directly with guard bits, since its denominator is at least . Both losses are polynomial. After evaluating the quotient, clip its approximation to ; this does not increase its error relative to the exact filter value. On this interval, . Evaluate using
For , the absolute tail after terms is bounded by a constant times . Again logarithmically many terms suffice, and the summands obey with . Thus only the previous summand, the partial sum, and an index are needed.
Fixed-precision addition, multiplication, and division on -bit registers can be performed by schoolbook algorithms using work bits and polynomial time. The series require only a constant number of such registers and a logarithmic counter. Polynomial error amplification and logarithmically many rounding steps are absorbed by choosing a sufficiently large constant in the precision bound. The number of controlled rotations emitted is polynomial, so allocating reciprocal-polynomial error to each gate also keeps the aggregate error within Lemma 5 and the budget following (23). This numerical work is performed by the classical circuit generator, not by a hidden clean quantum register. No eigenvalue computation or phase-finding procedure on a classically supplied matrix is needed.
Appendix B A phase-estimation error bound
For an eigenphase of , phase estimation with labels has amplitudes
If the circular distance between and is , the geometric-sum formula and give
Fix with . On either side of around the circle, the quantities for labels with form a truncated sequence whose successive terms differ by and whose first term is at least . Thus the failure probability is at most
The middle inequality follows by bounding the sum after its first term by the integral of over .
Take and let be the least power of two at least . On the event of circular error at most , the change in is at most . On the complementary event it is at most , while that event has probability at most . The error in the ideal phase average (16) is therefore at most , uniformly over all eigenphases. This leaves room for the rotation and elementary-gate errors in Lemma 5. The choices give and polynomially many walk calls.