Apply Hadamard gates to to prepare
Reversibly compute the efficiently decidable predicate into an ancillary qubit and measure it. The success probability is , and conditioned on success the first register is exactly
Restart after a failed measurement. After attempts, the probability that all attempts fail is below , so the state is prepared with probability at least using a number of gates polynomial in and .
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 logic gate Created 2026-10-06 Updated 2026-10-07
A unitary operation on a fixed number of qubits used as a component of a quantum circuit. Examples include the Hadamard gate and Controlled-Z gate. Measurements are described separately by quantum measurement; a gate is a reversible operation on its full input state.
Uniform superposition state Created 2026-10-05 Updated 2026-10-06
In an -dimensional computational basis, the uniform superposition state is
Measurement in that basis gives the uniform distribution on a finite set. For , Hadamard gates prepare it from . Its reflection is a Grover diffusion operator.