Use one target ancilla qubit initially in . Apply a CNOT gate from each data qubit to that same target, for . Each CNOT gate adds its control bit modulo two without changing the control. After all gates the target contains the parity bit . Thus the required circuit is the -gate parity fan-in:
This is parity computation by CNOT gates. The circuit also satisfies for either target value, and because all these shared-target CNOT gates commute and individually square to the identity. The action on general superpositions follows by linearity.
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.
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 .
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.
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.
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.
The Schmidt decomposition theorem states that a normalized vector in a finite-dimensional tensor product has the form , where the two families are orthonormal, , , and . Extending each family to an orthonormal basis for two qubits gives
The nonzero Schmidt coefficients can be made positive by absorbing phases into the basis vectors. Both are positive exactly when the pure state is entangled. A product state has Schmidt rank one, so one coefficient is zero; the source's assertion of two positive coefficients for every pure state needs this exception.
Choose each local orthonormal basis independently as the computational basis. In that basis . This is a local change of coordinates, implemented by separate unitary matrices, rather than a physical restriction on the original quantum state. The associated Pauli operators supply the other two local axes. Up to an irrelevant common phase, each unitary change of qubit basis corresponds to a rotation of its Bloch sphere.
Put . The Schmidt-basis Pauli correlation tensor is diagonal. The Pauli operators exchange and , while do so with minus signs, and leaves both fixed. Hence
Mixed components vanish: those containing one and one transverse Pauli operator map the occupied basis vectors outside their span, while the and matrix elements are purely imaginary and cancel for real Schmidt coefficients. By bilinearity, for arbitrary real vectors,
For a CHSH inequality test take unit quantum measurement axes
These CHSH axes for an entangled pure two-qubit state give
The local bound is two: for each hidden state, is when all four outcomes are , and averaging cannot increase its absolute value. Thus every entangled pure two-qubit state violates a CHSH inequality, the content of Gisin's theorem. A product state has and does not violate it, so the unqualified final claim in the question is false for that case. The maximum occurs for equal Schmidt coefficients. This excludes local hidden-variable theories satisfying measurement independence, but does not permit faster-than-light signalling: the local reduced density matrix and its quantum measurement probabilities are unchanged by the remote choice of axis.
In an ontological model of a quantum system, a preparation of gives a probability distribution over a physical state . A fixed quantum measurement has response probabilities with , reproducing the Born rule after averaging over . The PBR theorem says that, assuming preparation independence and the quantum predictions, distributions for distinct pure states cannot overlap with positive probability. Thus the quantum state is determined by the physical state in the psi-ontic model sense.
Preparation independence says that separately prepared systems have independent physical states: a product preparation is represented by the product of their individual ontic distributions. This is an assumption about the underlying physical states, not merely a statement that experimental preparation choices are independent. The excluded psi-epistemic model hypothesis is that the same physical state can occur with positive probability for two different pure-state preparations. The theorem neither excludes additional hidden variables nor claims that every interpretation which speaks of information is ruled out without these assumptions.
For the two given qubit preparations, consider the following PBR exclusion measurement for zero and plus, written in the ordered basis :
Direct inner products show that these four vectors are an orthonormal basis. Each labelled vector is orthogonal to the correspondingly labelled product preparation, so the associated projective measurement satisfies
This is an example of antidistinguishable quantum states: every outcome excludes one possible preparation, although the preparations cannot be perfectly distinguished.
To prove the contradiction without requiring deterministic quantum measurement responses, choose a common dominating measure for and write their densities . If they overlap, has mass . By preparation independence, every one of the four product densities dominates . Its total mass is . The zero Born rule probability for outcome implies that its nonnegative response vanishes almost everywhere for its matching preparation, hence also under this common product measure. All four responses would then vanish on a set of positive measure, contradicting their sum being one. Therefore and are mutually singular.
For the second pair, group the independent preparations into two blocks of . Define . The tensor-power reduction of PBR overlap gives
Each block therefore has an effective two-dimensional Hilbert space. Explicitly,
are orthonormal and . Embed the four-vector exclusion basis above into the tensor product of these two block spaces. To obtain a complete quantum measurement on all qubits, add the orthogonal complement of that four-dimensional subspace to one of its four projectors. All four allowed preparations lie in the subspace, so the four forbidden probabilities remain zero.
If the single-copy preparation distributions overlap with common mass , their -fold products all dominate the common measure of mass . The same zero-response contradiction now applies to the four block preparations. Thus
The argument is exact for the ideal devices specified in the question; no finite experimental resolution or noisy overlap bound is assumed.
Use one-bit remote preparation of real qubit states. Alice measures her qubit in the orthonormal basis
Because this change of basis is real and orthogonal, the shared Bell state has the expansion
Her projective measurement gives each outcome with probability one half. She sends for the first outcome and for the second. Bob's conditional pure state is respectively or .
For Bob does nothing. For he applies the fixed unitary operator
where is the Pauli Y gate. Bob need not know , because this correction is the same for all real . Both outcomes produce the exact density operator , using one classical bit and only local operations.
This remote state preparation consumes the shared entangled state. Before receiving the bit, Bob has the mixture , independent of , as required by quantum no-signalling. The real-state restriction is what permits a fixed unitary correction of the orthogonal outcome.
Use superdense coding. For the two-bit message , Alice applies to her half of the shared Bell state, where are the Pauli X gate and Pauli Z gate. The encoded states are
These four Bell states are orthonormal. Alice then transmits her one qubit to Bob, who now holds both qubits. A Bell-basis measurement identifies the message with probability one.
More explicitly, Bob can apply a CNOT gate with the received qubit as control and his original qubit as target, followed by a Hadamard gate on the control. The CNOT gate sends the encoded state to
and the Hadamard gate sends this to . Computational-basis projective measurements therefore read out exactly. One transmitted qubit, assisted by one previously shared Bell pair, communicates two classical bits.