Quantum no-signalling says that, without communicating a measurement outcome, any local trace-preserving operation performed on subsystem leaves all outcome probabilities for measurements on subsystem unchanged; equivalently, it leaves the reduced density matrix unchanged.
The two Bell states are orthogonal. Applying the inverse Bell-state preparation circuit, namely a Controlled-NOT gate from to followed by a Hadamard gate on , gives
A computational-basis measurement therefore distinguishes them perfectly, so
If only is accessible, however,
Every measurement on consequently has the same outcome distribution under both hypotheses. With equal prior probabilities no information is available, and
the error probability of a random guess.
Apply a Pauli X gate and then a Hadamard gate to the third qubit, and apply Hadamard gates to the first two. This prepares
One application of the Boolean quantum oracle now gives, by quantum phase kickback,
The answer qubit is unentangled and may be ignored. If all three qubits must be restored to the displayed register form, applying and then to the answer qubit maps back to . Thus the first register is exactly after one use of .
The printed sum contains although the stated labels end at . We use the natural periodic convention , with . If an open chain was intended, omitting the final term gives the same asymptotic bound.
Set , with indices modulo , and implement the product-formula Hamiltonian simulation
Each factor acts on two qubits, so it is a two-qubit unitary operator. More explicitly, if , , and is a controlled-NOT gate,
where is a Hadamard gate. This gives a constant number of one-qubit and two-qubit gates per factor; one-qubit gates can also be viewed as two-qubit gates tensored with the identity.
The spectral norm obeys the triangle inequality, submultiplicativity of the operator norm, and invariance under multiplication by unitary operators. In particular, the telescoping bound for products of operators gives for unitary . The first-order unitary product-formula error bound consequently yields
Only neighboring terms can have a nonzero commutator, because all other supports are disjoint. There are neighboring unordered pairs, and . Thus . Choosing gives
The coarser bound that counts all pairs also proves the often-used construction. Locality improves that cubic estimate to the quadratic bound above; neither assertion is a lower bound on the best possible circuit.
Write the normalized input as , where and . Use a data register, an -qubit eigenvalue register, and a flag quantum ancilla. Begin with .
Apply exact quantum phase estimation to . Its controlled evolutions and inverse quantum Fourier transform produce
Apply the HHL controlled reciprocal rotation, with :
The function of is computed by quantum arithmetic; the rotation is a quantum variable rotation. On a zero eigenvalue label with no input amplitude, define any unitary action, for example no rotation.
Run the inverse phase-estimation circuit. Because each amplitude multiplier depends only on , the eigenvalue register is reset to on both flag branches. Measuring the flag and conditioning on outcome one leaves
The successful unnormalized branch is , giving the probability in the preceding part. The operations independent of are the Hadamard gates preparing the phase register, the inverse quantum Fourier transform, the reversible reciprocal/angle arithmetic, the controlled fixed-angle rotations, and the final flag measurement. Uncomputation removes all arithmetic workspace; the -dependent controlled evolutions and the -dependent state-preparation circuit supply the input-specific operations.
The controlled-NOT gate sends to and to . Hence
Since the Hadamard gate satisfies ,
Starting from the -qubit computational basis state , apply one Hadamard gate to every qubit. Since ,
Thus parallel Hadamard gates prepare the uniform quantum superposition.
The Hadamard gate conjugates the Pauli X gate into the Pauli Z gate:
When the control qubit is , all three circuits act as the identity on the target. When it is , the right-hand circuit acts on the target as . It therefore agrees with the Controlled-Z gate on every computational basis state, proving
Conjugating both sides by and using immediately gives the reverse identity
After the first Hadamard gate, the joint state is
The controlled SWAP gate then gives
After the second Hadamard gate, it is
Starting from , the first layer of Hadamard gates gives
The Boolean quantum oracle then gives
Using the Walsh-Hadamard transform identity
the final state is
Apply a Hadamard gate to every qubit. The amplitude of becomes
It equals in case (I) and in case (II). A computational-basis measurement therefore returns with certainty in case (I) and never returns it in case (II). This is the Deutsch-Jozsa algorithm.
For the distributed problem, Alice prepares
using one query to her quantum oracle, and sends these qubits to Bob. Bob applies his phase oracle, producing
The function is constant zero in case (1) and balanced in case (2). Bob applies and measures as above: outcome identifies case (1), while every other outcome identifies case (2), with certainty.
Prepare an ancilla qubit in . To measure , apply a Hadamard gate to each data qubit, apply a controlled-NOT gate from each data qubit to the ancilla, measure the ancilla in the computational basis, and apply a Hadamard gate to each data qubit again. The ancilla records the parity of the two rotated computational-basis bits, so outcome corresponds to eigenvalue and outcome to eigenvalue . The data register is projected by , so its complete post-measurement state is retained. For , perform the same ancilla-assisted Pauli measurement but apply the basis-changing Hadamard gates only to the second data qubit.
Let
where is the Hadamard gate. For a computational-basis string , define the phase reflection
Thus changes the sign of , while changes the sign of the marked state.
Conjugating by reflects in the hyperplane perpendicular to , so
is the Grover diffusion operator, the reflection about . The Grover iteration operator
is the product of two reflections. It acts as a rotation through in the plane spanned by the marked state and the normalized uniform superposition of unmarked states, where
It is the identity up to sign on the orthogonal complement of that plane.
Put and . After the first Hadamard gate and the two controlled Pauli gates, the joint state is
The final Hadamard gate changes this to
Conditioned on ancilla outcome , the normalized data state is therefore
Write the input in the two eigenspaces of as
where the displayed eigenstates are normalized. A direct PBC measurement gives
with probabilities and . Hence the ancilla circuit and the Pauli measurement have identical outcome distributions and conditional data states after identifying the Pauli outcome with .
Since the Hadamard gate conjugates to ,
For , each exponential is , so
For ,
Using gives
so one convenient logarithm is
Both products are Clifford operations: the first is the identity and the second is a one-qubit Pauli Y gate up to global phase.
Yes. The states and are orthogonal, since
A joint projective measurement in the Bell basis therefore distinguishes them with certainty. Concretely, a controlled-NOT followed by a Hadamard gate converts the Bell basis into the computational basis before measurement.
Apply the gates from left to right. The first Hadamard gate and the first controlled-NOT gate produce the Bell state
The parallel gates then produce
The final controlled-NOT has the lower qubit as control; it interchanges and , whose amplitudes here are equal. Thus the output is
By quantum measurement in the computational basis, every basis outcome has probability equal to the squared modulus of its amplitude:
After the first Hadamard gate and the controlled unitary gate, the state is
The final Hadamard gate gives
Hence the Hadamard test returns one with probability
If , then and the outcome is zero with certainty. If , then modulo and the outcome is one with certainty. The single measurement therefore distinguishes the two promised cases exactly.
The operators act on different qubits and therefore commute, so
Since ,
The scalar is a global phase. Thus each factor uses two Hadamard gates and one phase gate, and applying the factors in parallel or sequentially gives an exact quantum circuit of elementary gates.