Use the positive-sign quantum Fourier transform
Orthogonality of the finite-group characters makes a unitary operator. Here is the least positive period. The injectivity within one period implies : write , . Periodicity gives , and injectivity forces . Put .
Start with two available computational basis states . Apply to the first register and query the modular-addition quantum oracle:
Measure the second register. For some , the first register becomes the normalized coset state
The quantum Fourier transform of a periodic coset state is
Indeed, the inner geometric sum vanishes unless the Fourier label is a multiple of . Measuring that label gives for a uniformly random . Compute, by the Euclidean algorithm,
Thus exact period recovery from a Fourier sample succeeds whenever is coprime to , and
Here is the Euler totient function. The classical number-theory input is the totient lower bound from the Mertens product: for sufficiently large , for an absolute , with the finitely many small cases handled separately. For recovery is certain; for its probability is . The useful asymptotic probability statement is a lower bound, hence notation; it can be much larger for particular periods, for example a prime period.
There is one oracle query, two Fourier transforms and two measurements. The final greatest common divisor and division use polynomial time in . This meets the specified primitive-operation model without assuming that an arbitrary- Fourier gate is free in another gate model. If a constant success probability is wanted, repeat independently times and return the least common multiple of the candidates: each candidate divides , and one successful sample makes that least common multiple exactly .
Prepare an additional qubit in by applying and then the Hadamard gate to . Apply to the data register. The Boolean quantum oracle then produces quantum phase kickback:
A final Walsh-Hadamard transform gives an amplitude for equal to
To see this identity, the sum factors over the bits; any position at which and differ contributes . This is Bernstein-Vazirani phase kickback, and its output is
There is exactly one oracle query, fixed quantum gates, and no probabilistic intermediate step. The ancilla qubit can be left in or reset to using its known inverse preparation. The construction includes the case .
The linear decoding must be done coherently, so its output is available inside the next Boolean quantum oracle call. Use registers of qubits and a shared phase ancilla qubit in . Define the Bernstein-Vazirani decoding controlled by a quantum register
The ancilla qubit is implicit. For every computational index , the Walsh-Hadamard transform calculation gives
In particular on these states. Initialize to and to . The three query stages are
The middle equality uses the matching index , not a classical guess of that string. The second performs uncomputation, removing the hidden-string register without losing its phase on . Apply to to obtain
This requires precisely two queries to and one to , and only additional fixed quantum gates. No measurement of is made: such a measurement would spoil the required coherence. Preparing all registers and the phase ancilla qubit uses only the initially available zero states.
Assume is normalized and the Hilbert space has dimension . The rank-one orthogonal projection satisfies and .
For , has eigenvalue zero on the orthogonal complement of , so it cannot be a unitary operator. The complementary orthogonal projection kills and is not unitary in any positive dimension. In contrast, the Householder reflection
is Hermitian and obeys . Its eigenvalues are along and on the orthogonal complement.
For , only is unitary. In the exceptional one-dimensional case, is also unitary; its complement remains zero.
Let be the orthogonal projection onto the good vector subspace , and let the normalized input be . Set with , and define
Assuming coherent access to the two reflections, the amplitude amplification theorem states that
preserves the plane spanned by and acts as a rotation, giving
Hence the good-outcome probability is . When is known, choose the nearest nonnegative integer to . The resulting angle is within of , so the good probability is at least . For small this is close to one and requires iterations. Exact success occurs when . Known also allows exact amplitude amplification by ancilla qubit dilution or selective phase adjustment when ordinary integer iterations would overshoot.
If has a known coherent preparation, its reflection is implemented with , and a zero-state phase flip. A coherent membership test supplies the reflection about . Merely possessing an unknown copy of does not automatically supply its reflection. For the state is already good; for this two-reflection construction cannot generate a good component. These cases delimit the theorem's algorithmic assumptions.
Prepare the two data qubits in and a phase ancilla qubit in . A single Boolean quantum oracle query flips only the marked amplitude. Its success fraction is , so in amplitude amplification. The fixed diffusion reflection gives after one iteration.
Directly, after the query the marked amplitude is and the other three are . Their mean is . The diffusion reflection replaces each amplitude by , yielding one at the marked input and zero elsewhere. Thus
Here is understood with its target ancilla qubit, and acts only on the data. It is independent of : , with the central diagonal gate implementable using two Pauli Z gates and one Controlled-Z gate. Measuring the data in the computational basis therefore finds the unique marked string with certainty after one oracle query.
Write , and . The easy starting state is uniform over all -bit labels, so its good fraction is , not . For distinct primes one has . If both primes are odd, and , giving . If one prime is two, the other is an odd prime ; since has bits, , and .
The uniform coprime state for a semiprime can now be prepared by one exact Grover rotation. Set
Prepare
Use the good subspace spanned by with and . Its squared overlap with is exactly . The Euclidean algorithm supplies a reversible computation of the membership predicate, including the range check; condition a sign flip on membership and the extra qubit being one, then uncompute the workspace. This implements .
The starting-state reflection uses the inverse of its known preparation and a reflection on the all-zero state. Applying once invokes exact amplitude amplification at , and gives
The extra qubit factors off, and the arithmetic workspace is returned to zero. Although the stated range includes , that label is not coprime to itself, so the predicate is equivalent and avoids admitting labels outside the intended range.
The supplied determine in polynomial time; no factoring procedure is needed. Binary arithmetic, range comparison, the reversible greatest common divisor, the two starting-state reflections and the controlled sign flip all have polynomial-size circuits. Thus the construction takes polynomial time in in the ideal model allowing the specified one-qubit state preparation. Exactness uses the rotation with known amplitudes ; with a fixed finite approximate gate library one obtains arbitrary accuracy with precision overhead, rather than an automatic promise of exact state preparation. In the ideal model the preparation succeeds with certainty, without rejection sampling. If desired, the extra can be reset by a Pauli X gate.
Let and use an -qubit phase register. Begin with and apply to the phase register, creating . Controlled powers implement
For phase qubit , counted from the most significant bit, the controlled power is . It can be built from calls to the supplied controlled- gate. By quantum phase kickback, the phase-register state is
Apply the inverse quantum Fourier transform to obtain the exact quantum phase estimation mapping
A computational basis measurement of the first register determines with certainty, hence and the eigenvalue . Exactness follows from the promised dyadic phase; no approximation or continued-fraction reconstruction is needed.
With only controlled- available as a query, the repeated-power construction uses oracle calls. The other Fourier-transform circuitry has polynomial size in in the ideal phase-gate model. The cost of exact phase estimation on a dyadic spectrum is therefore not polynomial in in this primitive-query model unless powered queries have additional implementations. The task does not require such a polynomial bound.
Since is a unitary operator, its eigenstates form an orthonormal basis. Expand , with eigenphases . By linearity, the unmeasured quantum phase estimation output is
This is generally an entangled state, not a phase label attached to an unchanged pure system state. The distinct eigenvalues give distinct phase labels, so a computational basis measurement yields with Born rule probability and leaves in the system register. Before measurement, all relative phases remain coherent; that is essential for the following spectral transformation. If phases were degenerate, a measured label would instead select the corresponding eigenspace component.
The binary phase is . Therefore
On the phase register, apply the tensor product of phase gates
Its action on is multiplication by . Thus the positive-phase fractional power of a unitary operator is implemented by uncomputation after coherent phase estimation:
Hence
The inverse phase-estimation circuit uses controlled powers of built from the supplied inverse oracle, with all other quantum gates reversed. No phase-register measurement is made, so arbitrary superpositions are preserved and the ancilla qubits return to zero. The straightforward implementation uses controlled-unitary queries plus the Fourier and phase circuitry; the arbitrary phase gates are accepted exactly as stipulated.
The branch convention matters. This construction uses the phase representative specified here, corresponding to argument in . It implements that explicitly defined root, even for . The usual complex principal branch with argument in would choose a different root on some eigenvalues. No substitution of that alternative branch is implicit.
The J gate is , with . Prepare a fresh qubit in and apply the Controlled-Z gate between it and the input . The resulting state is
Measure the input in the equatorial qubit measurement basis . The unnormalized output is
Each outcome has probability . Thus one-bit teleportation realizes
on the new qubit. Apply the known Pauli X gate correction for the literal output, or keep the correction in a Pauli frame and adapt later measurements. The old qubit is measured, so this is not cloning the input.
Direct multiplication of the given matrices gives . The displayed negative exponent in the supplied relation has the wrong sign for exact matrix equality. The discrepancy is only a global phase in a fixed measurement branch, so it does not change this measurement implementation or its outcome probabilities. The positive-sign identity is used when tracking exact matrices.
An explicit measurement-based quantum computation pattern uses six vertices . Prepare a graph state with every vertex in and apply a Controlled-Z gate for each edge
The first two links on each wire permit graph-state preparation of a computational-basis input followed by the logical J gate. Use the following single-qubit measurements:
  • Measure and in the basis, obtaining .
  • Measure in the equatorial basis with angle , obtaining .
  • Measure in the equatorial basis with angle , obtaining .
  • Measure in the basis, obtaining , and return . The unmeasured can be discarded.
All entangling edges can be made at preparation time because Controlled-Z gates commute. A future edge that does not touch a currently measured vertex can equivalently be deferred, which allows the one-bit teleportation identities to be applied in their logical order.
The two initial measurements implement with Pauli frames on the logical inputs. The first adaptive J gate then has output frame on . Propagating through gives frames
up to branchwise global phase. The second adaptive J gate converts the latter into
A correction does not alter a computational-basis measurement, while an correction flips its bit. Consequently the deterministic classical postprocessing is
This reproduces the output-bit distribution of the original quantum circuit, including its known byproduct corrections.
Figure 1.
Six-vertex graph state, adaptive equatorial measurements and classical parity correction for the two-wire circuit
.
There is an additional simplification for these particular zero inputs. Since , , and , the exact final state is , independently of the angles. The requested bit is therefore fair. A single isolated graph-state vertex measured in already simulates that bit distribution; the six-vertex pattern also explicitly realizes the circuit and its corrections.
Use the operator norm induced by the usual vector norm, and assume the input quantum state is normalized. Since and the Hadamard gate is unitary, the J-gate phase-error operator norm is
Write the exact and implemented quantum circuits as ordered products and . The quantum circuit gate-error telescoping bound follows from
Every surrounding factor is unitary, including gates tensored with identities on other qubits, so the triangle inequality and the submultiplicativity of the operator norm give
The exact Controlled-Z gates contribute zero to that sum. Thus
The endpoint is sufficient because each implemented angle error is strictly smaller than . If , the circuits are identical and any positive works. The bound controls the stated vector distance with actual gate phases retained, so no adjustment of the global phase of one output is needed.

Articles by others on the same topic (0)

There are currently no matching articles.