Dyadic phase-gate identification 2026-10-14
For the phase gate , apply powers to a uniform quantum superposition on qubits. Binary positional weights multiply the phases into on basis vector . The inverse quantum Fourier transform returns exactly, by orthogonality of roots of unity. Preparing the powers by repeated applications uses copies of ; this does not claim a number of gate calls polynomial in . If is odd, its powers generate the entire set of dyadic phase gates because has a modular inverse modulo .
Hadamard gate Created 2026-09-24 Updated 2026-10-14
The Hadamard gate is the unitary operatorwhere is the identity operator. It maps the computational basis to the Hadamard basis:
These outputs have equal computational-basis measurement probabilities, but their relative quantum phase differs. Applying another Hadamard gate sends them to different definite outputs. Calling this gate a classical coin toss would discard precisely the information that makes this possible. [ref]
https://quantum.cloud.ibm.com/learning/en/courses/basics-of-quantum-information/single-systems/quantum-information. Watrous, IBM Quantum Learning, unitary operations on qubits
.Starting from , compare two quantum circuits, reading matrix products from right to left:Here is the Pauli Z gate. After the first Hadamard gate, the probability amplitudes are . Inserting changes them to without changing their squared magnitudes. At the final gate, the contributions to output zero cancel and those to output one add. Without , cancellation occurs at output one instead. This is controlled interference, with the quantum phase determining which answer emerges.
The same calculation works for any phase gate :For example, gives , while gives . The output-one amplitude at is : its two complex contributions add before the Born rule is applied. A phase gate alone leaves the populations unchanged; recombination converts its relative quantum phase into observable probabilities.
Hadamard interference: a relative phase changes output probabilities through complex amplitude addition; the dotted circle traces the output-one amplitude as the phase varies
. Details. If quantum decoherence completely removes the computational basis coherence between the gates, the intermediate density matrix becomes . Both the phase gate and final Hadamard gate leave unchanged, so for every . The disappearing fringe explains why preserving quantum coherence matters: it enables the gate sequence to carry phase information into the final measurement.
For the printed equatorial-basis convention,It is the Hadamard gate after a phase gate. The identities and follow by multiplying their matrices. For these are Clifford gates. In particular , permitting a sign change of the measurement angle to be absorbed into a Pauli frame.
J-gate phase-error operator norm 2026-10-06
The J gate is , where : the phase gate acts first and the Hadamard gate acts second. Unitary invariance of the operator norm reduces its angle error to the single nonzero diagonal difference of the phase gate. Its norm is . The quantum circuit gate-error telescoping bound then makes an angle tolerance of sufficient for such imperfect gates and exact other gates.
Use CNOT gates to encode one logical qubit and zero ancillas into the repetition subspace spanned by . Apply the phase gate in parallel to all physical qubits, then undo the encoding. The logical phase is multiplied by in one oracle-time layer. This copies computational-basis labels coherently rather than cloning an arbitrary quantum state. Blocks of sizes prepare a dyadic Fourier phase state using parallel oracle applications.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 47 1 Solution Created 2026-10-03 Updated 2026-10-14
Take the Hadamard gate to be and the phase gate to be . This fixes the sign convention for the interference phase.
For the coherent quantum circuit, the successive quantum states areThe Born rule therefore gives the concise answer
With the stated quantum decoherence after the phase gate, the joint pure state before the last Hadamard gate isAfter that Hadamard gate, its environment coefficient at output zero is . Squaring its norm sums over every unobserved environment outcome, soThe Cauchy-Schwarz inequality gives . In this single-qubit interference with conditional environment states, is the interference visibility: orthogonal environment states erase the fringe, while a unit-modulus overlap shifts its phase without reducing visibility. The plus sign in follows from the specified overlap , rather than its complex conjugate.
If the same quantum decoherence occurs before the phase gate, the joint pure state is first . The phase gate then produces exactly the same state used above. Equivalently, the controlled environment interaction commutes with the diagonal phase gate. The probability is unchanged.
For the Deutsch algorithm, use the reversible Boolean quantum oracleThe algebraic oracle map printed in the source has its arguments misplaced: taken literally, it sends two distinct answer inputs to the same output for constant , so it cannot be a unitary operator. The corrected map above agrees with the diagram's input-control, answer-target arrangement. Put the answer qubit in . Since the Pauli X gate satisfies , quantum phase kickback givesWrite . Up to the irrelevant global phase , the input qubit acquires relative phase , so its ideal final computational-basis measurement returns : zero for a constant function and one for a balanced function.
Let the specified quantum decoherence occur in the interference portion between the two Hadamard gates. It commutes with the oracle's effective diagonal phase on the input, so the same analysis applies whether it occurs just before or just after the query. The two likelihoods areThus the diagram's usual zero-for-constant decision rule hasThis is the reliability for either promised class separately, with no prior needed. For equally likely classes, if is known to be negative, reversing the interpretation gives . A known environment phase can instead be compensated by the phase gate before the final Hadamard gate, giving success probability . In particular, gives no information and permits certainty after phase compensation. These refinements distinguish a shifted fringe from lost quantum coherence; with the unmodified diagram a phase shift alone can reverse the apparent answer. Quantum decoherence after the final Hadamard gate leaves its computational populations unchanged, so that different placement would not spoil the measured answer.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 47 4 Solution Created 2026-10-03 Updated 2026-10-14
Write both the input and output integer labels in most-significant-bit-first order, and . Factoring the Fourier phase over the bits of gives the product decomposition of a Fourier phase state:Here denotes the binary fraction ; the integer part of does not affect the phase.
Build a dyadic quantum Fourier transform circuit as follows. Process wires in that order. First apply a Hadamard gate to wire . Then, for each , apply the controlled phase gate with control wire and target wire . On a computational-basis state, every unprocessed control is still the bit , so wire becomesOnce a wire has been processed it is not touched by later stages. Reversing the order of the output wires gives exactly the Fourier product above. Agreement on every computational-basis state proves agreement as linear operators on all superpositions, even though the intermediate operation on a general input can create entanglement.
There are Hadamard gates and controlled phase gates. Output reversal may be treated as wire relabelling. If it must instead be implemented physically while using only the requested gate family, use swap operators. Each swap is three controlled-NOT gates, andThus the swaps use only Hadamard gates and Controlled-Z gates, which are controlled gates. An exact physical network haselementary gates from the stated family. This implements the positive-exponent Fourier transform with the correct output order in quadratic size. Omitting the output reversal without relabelling the wires would produce the reversed-order transform instead.
For the perturbation bound, the operator norm in the source is equivalently . It satisfies the triangle inequality, is unchanged by left or right multiplication by a unitary operator, and a unitary operator has norm one. The exact telescoping identity isIt follows by replacing one factor at a time; alternatively all intermediate products cancel in the sum. Taking the operator norm and using unitary invariance gives the quantum circuit gate-error telescoping boundThe original PDF assumes strict , so its strict conclusion is justified. If the hypothesis were weakened to a non-strict inequality, the conclusion would likewise be . The TeX aid misreads this hypothesis; the PDF resolves it.
Apply the non-strict version to each approximate unitary gate in the Fourier network. Extending a gate by the identity on other wires leaves its operator norm error unchanged. Including the physical swap decompositions, all gates are of the required type and can obey the stated accuracy. HenceWith exact output relabelling rather than physical swaps the numerator is just . The proof retains gate phases and makes no assumption of cancellation between coherent errors.
For every normalized input the output-state norm error is at most this same bound. If is any positive operator satisfying , the change in its measurement in quantum mechanics outcome probability is at most , where : expand the difference of the two expectations into two terms, each bounded by using the Cauchy-Schwarz inequality. Thus inverse-polynomial gate accuracy gives an inverse-polynomial total error, rather than requiring exponential precision in the number of qubits. For the phase gates this corresponds to specifying angles with bits of precision, since . This is a robustness statement for unitary gate approximations; it does not by itself correct quantum decoherence, correlated stochastic faults, or limitations of hardware connectivity.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 58 1 c Solution Created 2026-10-03 Updated 2026-10-14
The PDF circuit has its upper wire controlling both CNOT gates. Its successive states areThe first arrow is the upper Hadamard gate; the middle phase arises because both ones receive a phase. The second CNOT disentangles and resets the lower wire. Hence the output isThis implements doubled logical phase using two parallel phase gates, rather than two serial applications on one qubit.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 58 4 c Solution Created 2026-10-03 Updated 2026-10-14
Choose the phase gateIt is unitary. Acting on both qubits leaves unchanged and multiplies by , so sends to with exactly the requested phase.
Using the Hadamard gate , chooseIt is unitary and symmetric, andFor any matrix , applying to gives the coefficient matrix . Here , henceBoth displayed transformations are exact, not merely equal up to global phase. These common local unitaries permute the triplet Bell projectors while preserving the singlet projector by the preceding determinant identity.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 51 3 a Solution Created 2026-10-03 Updated 2026-10-14
Using the printed measurement-vector convention, the unitary operator isThus it is a phase gate followed by a Hadamard gate, with angle sign opposite to the parameter in the catalogued J gate. Its rows are the conjugate transposes of the orthonormal measurement vectors, so it is unitary. Right multiplication by the Pauli Z gate changes the sign of the second column, which is exactly the effect of left multiplication by the Pauli X gate, exchanging the two rows. Explicitly,Similarly, right multiplication by the Pauli X gate exchanges columns, givingTherefore the exact identities, retaining the global phase in the second one, areThese supply Pauli-frame propagation along a measurement wire.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 49 4 a Solution Created 2026-10-03 Updated 2026-10-14
Put and label the binary digits of by , with . The Walsh-Hadamard transform prepares the uniform quantum superposition . Applying the phase gate to the qubit for digit multiplies its basis amplitude by . Taking their product givesWith the most significant qubit written first, this provesEach power is implemented by repeated uses of the supplied gate. The total is uses. This realizes dyadic phase-gate identification without needing an unknown controlled gate or asserting a gate-call cost polynomial in .
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 49 4 d Solution Created 2026-10-03 Updated 2026-10-14
Write the normalized qubit as , with . Only the amplitude changes between the two phase gates, soSince ,The phase-gate discretization error is uniform over all input states; its exact operator norm is . To choose an approximating gate, round to the nearest integer and reduce it modulo . Taking the shortest circular angle difference gives , and hence a uniform state-vector error at most . The circular choice handles the identified endpoints and correctly.
