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:
Use three controlled-NOT gates with control-target directions
On computational-basis bits they act as
They therefore implement the Three-CNOT decomposition of the SWAP gate, and linearity proves the identity on every two-qubit state.
Each summand of acts on one qubit, while each summand of acts on two. Therefore is a 2-local Hamiltonian. We have
Split into steps of length and use the second-order product formula
For one step, in the stated estimate, so the spectral-norm error is . The error bound for a product of unitary operators makes the total error
It is therefore enough to choose
with also large enough that the small-step estimate applies.
All terms commute. A factor uses a constant-size circuit of two controlled-NOT gates and one phase gate, up to a global phase, so one product-formula step costs gates. The complete Hamiltonian simulation consequently has size
Write and . Before measurement, the three controlled-NOT gates map a computational-basis component to
The measured bit is therefore . For , the unnormalized state of the first qubit is
For , it is
Each branch has probability ; after normalization and removal of the irrelevant global phase , the two outputs are
with equal probability. This is probabilistic phase-gate injection.
Apply a Hadamard gate to Alice's qubit, followed by a controlled-NOT gate from Alice to Bob and another from Alice to Charlie:
Thus this circuit gives the required quantum circuit preparation of a three-qubit GHZ state.
Quantum teleportation transfers an unknown qubit state using a previously shared Bell pair, local operations and two classical bits. It requires no description of the unknown complex amplitudes and produces no extra copy.
Let the input be , and let Alice and Bob share . Alice applies a controlled-NOT gate from to , then a Hadamard gate to . Expanding the circuit gives the Bell-basis teleportation identity in computational-output form:
Her projective measurement yields each bit pair with probability . She sends the two classical bits, and Bob applies to recover . The order is the inverse of the displayed conditional operator; interchanging these Pauli corrections changes only an irrelevant global phase when both bits are one.
Before receiving the bits, Bob has
Thus teleportation respects the no-communication theorem and cannot transmit the usable unknown state faster than the classical message. Alice's input has been measured, and the shared entanglement resource has been consumed, in agreement with the no-cloning theorem. The protocol transfers the state, not the material particle initially carrying it.
A physical implementation must distribute and preserve an entangled pair, implement a Bell-basis measurement and transmit its result to a controllable output system. Imperfect entanglement, lost outcomes and noisy corrections reduce quantum fidelity; a heralded probabilistic experiment must report its success probability separately from conditional fidelity. Ideal deterministic teleportation assumes every Bell outcome can be identified and corrected.
The no-cloning theorem states that no fixed deterministic quantum operation can perfectly duplicate every unknown pure state. For a unitary copier with a fixed blank, suppose it cloned two normalized vectors . Preservation of inner products would give , impossible for a nonorthogonal distinct pair with overlap strictly between zero and one in modulus. Including an environment does not help: its final overlap has modulus at most one, so one would require . Thus a universal perfect copier is impossible. Orthogonal known alternatives do not contradict this restriction.
Label the three qubits as input , Alice's entangled qubit and Bob's qubit . Initially their joint state is
The controlled-NOT gate from to changes this to
Apply and to the first qubit and group by Alice's two computational-basis outcomes. The result is
In expanded form the last two Bob factors are and . Their Alice labels must be and ; the repeated labels in the source are printing errors.
Alice measures her two qubits and sends the two classical bits to Bob. Each outcome has probability and Bob's conditional state is . He applies to recover the input, up to physically irrelevant global phase. Explicitly the corrections for are . This is quantum teleportation: Alice's input is consumed by measurement, so no second surviving copy is created. Before her classical message, Bob's reduced density operator is , independent of the input, so the protocol also supplies no faster-than-light communication.
The magic state and a short controlled-NOT gate circuit can apply either or to an input, with a measured bit identifying the branch.
Let , where the conditional target operators are unitary. For product input ,
Tracing over removes cross terms with unequal control labels. Tracing over leaves , proving the formula and its independence of . Exchanging and proves the corresponding reverse independence. Thus the two targets cannot signal to each other through this fixed common-control interaction, despite phase kickback allowing a target to affect its control.
Two controlled-NOT gates with a common control and distinct targets are an example. They commute; their chronological order can be exchanged, giving an equivalent causal proof. Intervening control rotations or additional interactions can change the conclusion.
Measure the commuting stabilizer generators and in that order. Use error syndrome bit for eigenvalue and bit for eigenvalue . For the Pauli X gate on physical qubit , every row holds for arbitrary normalized . This ordered parity-check convention follows [ref]:
ErrorState before recovery eigenvaluesError syndromeRecovery
Each pair of computational basis words within a row has the same two parities. Consequently the projective measurement reveals the row without distinguishing its two amplitudes. For example, becomes under . Both checks give with probability one, and applying restores both coefficients exactly, including the relative phase .
One implementation uses two quantum ancillas initialized to . Two controlled-NOT gates from data qubits 1 and 2 to the first quantum ancilla write their parity; two more from data qubits 2 and 3 to the second quantum ancilla write the other parity. Measuring only the quantum ancillas in the computational basis gives . Measuring the individual data qubits instead would reveal the encoded computational basis value and destroy the unknown quantum superposition. The existing coherent syndrome extraction for the three-qubit repetition code uses the alternative ordered checks , so its bit labels differ from this table.
Figure 1.
Parity checks identify a bit flip without reading the logical amplitudes
. Details.
The recovery also handles coherent errors. Put . Their images of the code are mutually orthogonal, giving , the Knill--Laflamme condition for this family. For any linear combination , its component in sector is . Measuring that error syndrome has probability on the normalized erroneous state, and recovery returns . More generally one recovery quantum channel corrects every noise quantum channel whose Kraus operators belong to this span. The assumption concerns the whole jointly correctable family; it does not extend to the span of arbitrary single-site Pauli errors. [ref].
A fully computed coherent example is the unitary operator . At it gives
The error syndromes and occur with probabilities and , independently of . Doing nothing for and applying for restores the same logical qubit in both branches; the scalar in the second branch is an irrelevant global phase. This is an example of linearity of coherent quantum error correction, rather than an assumption that the original error was a classical random bit flip.
The inversion about the mean for four computational-basis states can be implemented using Hadamard gates, Pauli X gates and one controlled-NOT gate, up to global phase. Let and . Since , one has and therefore . This gives an exact quantum circuit representative of the four-entry Grover search algorithm diffusion step modulo its irrelevant overall minus sign.
A two-qubit parity phase gate multiplies odd-parity computational vectors by and fixes even-parity ones. With ,
The first controlled-NOT gate computes in the second wire, the phase gate multiplies by , and the last controlled-NOT gate restores the original bits. This compute-phase-uncompute construction leaves the data unchanged except for the desired phases. The more general Pauli-string phase by parity computation uses the same mechanism. In terms of the Pauli Z gate, ; the scalar factor ensures equality as a matrix, rather than only up to global phase.