Parity computation by CNOT gates 2026-10-07
Apply one CNOT gate from each input qubit to the same target. Their actions commute because controls remain unchanged and each contribution is added modulo two. This reversible circuit computes the parity bit with exactly one two-qubit gate per input, and its inverse is the same circuit. Unlike measuring the inputs to compute parity classically, the unitary preserves quantum superposition and can be uncomputed after phase application.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 61 1 Solution Created 2026-10-03 Updated 2026-10-14
Choose a real unitary matrix and undo it at the second stage:After the first rotation the photon qubit is . A dud leaves this quantum superposition unchanged, so the inverse rotation restores . Its final projective measurement can never return .
For a live bomb the absorbing component explodes with probability . If the photon survives, the normalized state is , and the second rotation makes it . The unconditional probabilities of the three possible live-bomb outcomes are consequentlyThey sum to one. The nonexplosive result certifies a live bomb because its dud probability is exactly zero. The inconclusive result resets the qubit to its original state, allowing another identical trial.
The repeated weak-rotation bomb-test efficiency follows by summing the geometric series over the first successful trial:This is conditional on testing a live bomb, not an average over an unspecified prior fraction of duds. To make the finite-run success probability exceed , choose positive so that , then choose so that . The first condition controls the limiting deficit and the second controls the remaining tail. Exactly yields no explosion but also no information, so the limit must be approached with nonzero weak rotations.
The half-efficiency limit is consistent with the structure of this Elitzur-Vaidman bomb tester. Suppose generally . A final outcome that certifies a live bomb must be orthogonal to the dud output . Pulling this outcome backwards through gives the normalized vector orthogonal to . Its squared overlap with is . Thus the safe-certification probability is , whereas the explosion probability is . The former never exceeds the latter. Summing these mutually exclusive terminal events over repeated, possibly adaptive trials gives and hence . This concerns the specified rotate–interact–rotate–measure protocol.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 61 2 Solution Created 2026-10-03 Updated 2026-10-14
The Schmidt decomposition and local unitary operations put any entangled two-qubit pure state intoBoth Schmidt coefficients are nonzero. Alice performs a two-outcome generalized measurement with Kraus operatorsTheir effects sum to the identity, so this is a legitimate local measurement in quantum mechanics. On success,The normalized output is the Bell state . Bob's unitary matrix maps it to the spin singlet state. Alice communicates her success flag; no shared quantum operation is needed. At the filter is the identity and success is certain. This is the singlet target case of optimal stochastic conversion of a two-qubit pure state.
For dichotomic local outcomes , the CHSH inequality isIt assumes a local hidden-variable theory with freely chosen settings independent of the hidden-variable distribution. For the spin singlet state, direct evaluation of its Pauli matrices correlations givesChoose , , , and . The four correlations are , respectively, giving
The success flag must be recorded and communicated before the subsequent independent choice of Bell-test settings. This conditioning is legitimate because setting-independent heralding preserves Bell locality: a putative local hidden-variable theory for the entire sequential experiment would, after successful filtering, still have local response functions with a setting-independent conditional hidden-variable distribution. More explicitly, if the hidden variable is and is the already determined success flag, conditioning changes its distribution to but leavesClassical messages used in preparation can be included in ; none are exchanged during the spacelike Bell measurements. Such a conditioned model still obeys the CHSH inequality, contradicting the displayed singlet correlations. Therefore no local hidden-variable theory reproduces all sequential measurement correlations of any entangled two-qubit pure state. This argument does not discard outcomes on the basis of the later measurement settings.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 61 3 Solution Created 2026-10-03 Updated 2026-10-14
The resource here is one copy of a two-qubit Werner state, with the physical range . The impossibility must include successful conditional branches of local operations and classical communication; average monotonicity alone would not exclude probabilistic enhancement.
For a normalized two-qubit pure state , define its concurrence as . Its mixed-state concurrence of two qubits is the convex roof extensionCombining near-optimal decompositions proves convexity. A separable quantum state has zero concurrence, because it has a decomposition into product vectors with zero coefficient determinant.
First establish the concurrence of a two-qubit Werner state. A pure state with squared Schmidt coefficients has . In this Schmidt basis a maximally entangled state has coefficient matrix with unitary. Its overlap magnitude is at most , because . Thus the singlet overlap satisfiesAveraging any decomposition of gives .
For the reverse bound use the orthonormal triplet vectorsEach is normalized, and direct evaluation of its two-by-two coefficient determinant gives . Their equally weighted six-state mixture has cancelled singlet–triplet coherences and triplet weight , so it is exactly . Hence
Every fully specified record of an LOCC protocol gives a product Kraus operator on the original pair. Local ancillas and discarded local outcomes can be included by refining the record. Write its success probability and normalized output asFor invertible , the concurrence scaling under invertible local filters isHere is a derivation of that scaling. Each pure coefficient matrix transforms to , so its unnormalized determinant is multiplied by . If that pure component has success probability , its normalized concurrence is multiplied by , while its mixture weight becomes . Every ensemble average therefore scales by . Invertibility provides the reverse correspondence for every decomposition of , so taking both infima proves equality. If either local filter has rank one, the output is a separable quantum state and the desired bound is immediate.
It remains to show that the filter normalization cannot make this ratio exceed one. Use the Pauli matrices representationWrite the positive matrices and , so , . Taking traces givesFor completeness, squaring the middle comparison leaves , and both sides are nonnegative. This proves the single-copy Werner filtering normalization bound, and hence
Forgetting some record information or grouping several successful records mixes these branch outputs; convexity preserves the same bound. Any alleged final would therefore obey , contradicting . Thus even heralded single-copy LOCC cannot produce the specified improved Werner state. This proves that single-copy Werner filtering cannot increase concurrence. It does not forbid collective entanglement distillation from several noisy pairs; allowing additional shared entangled input copies would change the resource assumption.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 33 1 b Solution Created 2026-10-03 Updated 2026-10-14
Here the number of errors means the number of affected physical qubits: assume that all errors supported on at most qubits are jointly correctable. It does not mean the cardinality of an arbitrary selected error list. Let be any Pauli operator of weight at most . Split its support into disjoint sets , each of size at most , and write . Each Pauli factor is Hermitian, so take , to get , up to an irrelevant scalar phase if different Pauli representatives are used. The Knill--Laflamme condition givesThis is precisely quantum error detection: a projective measurement with outcomes either detects departure from the code or leaves the accepted logical state unchanged up to a scalar. Some errors can be harmless scalars on the code, particularly for degenerate correction; detection is not required to flag such an error with certainty.
Any linear operator supported on at most qubits is a linear combination of Pauli operators on those qubits, so its code compression is scalar by linearity. ThusThis is correction implies detection at twice the weight. The premise about all locations and all error types is essential: merely correcting one selected operator gives no universal statement about every operator of twice its weight.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 33 2 Solution Created 2026-10-03 Updated 2026-10-14
For an -qubit quantum code with projector , the quantum code distance isHere the weight counts nonidentity tensor factors. Thus every error supported on fewer than qubits is detectable, by the Pauli expansion of a quantum error. A scalar action on the code, including a nonidentity stabilizer, is harmless and does not reduce this distance. For a stabilizer code, the equivalent definition minimizes weight among Pauli operators which commute with every stabilizer generator but act nontrivially on the logical information. The Knill--Laflamme condition then guarantees correction of all errors of weight at most , since each pairwise product has weight at most .
Suppose the code encodes logical qubits and is nondegenerate for all errors through weight . There aredistinct Pauli errors modulo phase: choose the affected positions and choose or at each. Each error is unitary, so its image of the code has dimension . Nondegeneracy makes these images mutually orthogonal, equivalently the combined vectors are orthonormal. They all lie in the physical Hilbert space of dimension . Counting dimensions proves the quantum Hamming boundThis dimension argument requires nondegeneracy. For a degenerate code, different errors can share an image, as in the Shor code, and this counting proof cannot be applied unchanged.
For a binary classical code of words, the Hamming bound is : disjoint Hamming balls around the words must fit into all binary strings. The quantum factor is needed because at each erroneous qubit there are three linearly independent nonidentity Pauli operators, not just a classical bit flip. A phase flip is invisible to a computational-basis classical record but changes a quantum superposition. A error combines bit and phase effects, and the identity with spans every one-qubit operator. Quantum correction must protect amplitudes and coherences, and consequently count whole orthogonal logical subspaces rather than just classical words.
For parameters , , andThus a nondegenerate such code saturates the bound: the sixteen two-dimensional error images exhaust the physical space. It is a perfect quantum error-correcting code for single-qubit errors. It also has the smallest possible length for nondegenerate single-error protection of one logical qubit: for , the required inequality fails.
Here is an explicit realization and its five-qubit stabilizer syndrome table. Write tensor products without multiplication symbols and useEach pair has an even number of anticommuting single-site factors, so the four stabilizer generators commute. Their binary Pauli labels are independent: no nonempty product has identity label. For example, the -support at site three fixes the exponent of in such a product to zero, site five then fixes that of , site one fixes that of , and site two fixes that of . Thus their group has sixteen elements and excludes . The common eigenspace has projector and dimension , since all nonidentity Pauli strings have zero trace.
Record a syndrome bit as one when an error anticommutes with the corresponding generator, in order . Direct local commutation givesThese are all fifteen nonzero four-bit error syndromes; the identity has . Distinct errors in this list have a product with nonzero syndrome, so it anticommutes with some . Inserting on both sides gives . The diagonal product is the identity. Hence the Knill--Laflamme condition is exactly , proving nondegenerate correction. Measure the four commuting checks, apply the unique indicated Pauli error again, and every logical state is recovered. The Pauli expansion of a quantum error extends this recovery to an arbitrary one-qubit noise channel, not just the fifteen discrete errors.
The table also proves that every Pauli operator of weight one or two has nonzero syndrome: a weight-two operator is the product of distinct single-site errors, whose syndromes differ. Therefore the distance is at least three. The operators and commute with all four generators and anticommute with each other. They are nontrivial logical Pauli operators. Multiplication of by gives , a weight-three operator with the same logical action; it cannot be scalar on the code because it anticommutes with the invertible logical operator . This proves exactly.
The code consequently detects every two-qubit error and corrects two known-location erasures by the quantum erasure correction criterion, but it cannot correct all two-qubit errors of unknown location. A nontrivial weight-three logical operator can be split into a weight-one and a weight-two error, whose pairwise product violates the correction condition. It also saturates the quantum Singleton bound, since . These properties distinguish single-error perfectness from unrestricted protection against larger errors.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 33 5 Solution Created 2026-10-03 Updated 2026-10-14
Let be a unitary operator and suppose initially that the target is an eigenstate with , . Use control qubits, so . Hadamard gates prepare the uniform superposition . For each binary control position , apply the controlled unitary gate . The resulting state isApply the inverse quantum Fourier transform, with convention , and measure the control. The exact amplitude and probability areFor an exactly representable phase , orthogonality of roots of unity makes the outcome certain. Otherwise the finite geometric series givesThe estimate is , with phases interpreted modulo one.
To prove an error bound, choose a nearest label to on the circular grid and put in the interval . For , concavity of sine on gives , while . Therefore the nearest-integer success bound for quantum phase estimation isHere . At an exact grid point the probability is one. If two nearest labels tie, either one separately has the displayed lower bound.
For high confidence one can prove a stronger quantum phase estimation tail bound. Let be the centered distance between and , chosen with . The denominator estimate implies away from the exact-phase case. A label at circular integer distance from has , and there are at most two labels at each such distance. For , summing the tails givesOn the complementary event the circular phase error is at most . Thus, for desired bits of accuracy, take with and to obtainTaking makes the right side at most . This adds only control qubits. Efficient QFT is not by itself a guarantee of efficient controlled powers of an arbitrary : implementing them by repeated oracle calls uses calls. The modular-arithmetic application has efficient powers, as follows.
Assume and , and let be the multiplicative order of modulo . Define the unitary operator on , and extend it as the identity on unused computational-basis labels of the binary register. Coprimality makes multiplication a permutation, so this extension really is unitary. The orbit of consists of the distinct states . Its modular multiplication eigenstates areThe last relation follows by shifting the index cyclically; orthogonality follows from the finite Fourier sum. We do not need to know to prepare one of these eigenstates: the readily prepared target obeysRunning quantum phase estimation on this state produces the mixture of the eigenphase distributions, each with weight , because the target eigenstates are orthogonal. Thus it samples a uniformly random phase label and estimates with the bounds just proved. Equivalently the state before the inverse QFT is , which is obtained by quantum modular exponentiation directly.
The controlled power multiplies by , whose constant is computed by repeated squaring. Under the assumed efficient modular exponentiation, these controlled multiplications and the QFT use a number of gates polynomial in the register lengths. Taking requires only phase qubits. The nearest-label event has probability at least and yields an estimate within of . Since , continued-fraction recovery in quantum order finding then identifies the reduced fraction . The denominator is , not necessarily : when and are coprime it is the desired order, and when they are not it is only a divisor. One may test candidate denominators using modular exponentiation and repeat with fresh samples; denominators from successful samples can also be combined by a least common multiple. The probability of a nearest-label sample with coprime to is at least . These qualifications explain exactly what the phase estimate yields without falsely assuming that the unknown order or an eigenstate was available at the start.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 35 1 Solution Created 2026-10-03 Updated 2026-10-14
The Pauli group includes scalar phases . For a nonzero stabilizer code, its Abelian subgroup must satisfy . Otherwise a common positive eigenvector would satisfy and vanish; for example is Abelian but yields no nonzero stabilizer code. We impose this standard admissibility condition.
Every element of such a stabilizer group is Hermitian and squares to : an imaginary-phase Pauli with square is excluded. The associated stabilizer code and its orthogonal projector areThe group multiplication proves , Hermiticity gives , and its range is exactly the common positive eigenspace. If has independent generators, . Every nonidentity element has trace zero, while , soThus it encodes logical qubits.
For the symplectic representation of a stabilizer code, label by , ignoring scalar phase. Products add labels, andThis is the nondegenerate alternating form on the binary symplectic space of Pauli labels. The image of is an r-dimensional isotropic subspace of a binary symplectic space, since the generators commute and no nontrivial scalar lies in . Consequently and . A binary generator matrix satisfies . Conversely an isotropic subspace can be lifted by choosing commuting Hermitian generators with independent labels; their products cannot equal , and the orthogonal projector formula supplies the stabilizer code. The labels of the centralizer of a stabilizer group are , with nontrivial logical actions represented by .
For an example, the three-qubit bit-flip repetition code has and . Its two binary rows have zero X part and Z parts . The errors have respective error syndromes , so all single bit flips can be corrected. This is not a stabilizer code correcting every single-qubit error: acts as a nontrivial logical phase error.
Let denote the Pauli centralizer. The exact Pauli error criterion for a stabilizer code isEquivalently, no difference of error labels lies in . The scalar phases in are essential: an error product is harmless even though it is not in .
We prove the criterion. For outside , some anticommutes with . Since , we have , hence . If , then . If , it restricts to a unitary operator on the stabilizer code, butno is scalar. A scalar restriction would have scalar coefficient zero by this trace equation, contradicting unitarity. Thus this third case is not scalar.
To justify why scalar compressions are exactly what correction requires, suppose one recovery corrects every . Dilate that recovery to an isometry including its auxiliary system. Correct recovery of every pure stabilizer code state gives . The auxiliary state is independent of : linearity on basis states and their superpositions forces their auxiliary vectors to coincide. Preservation of inner products then giveswhich is the Knill--Laflamme condition . The three cases above prove necessity of the boxed criterion.
For sufficiency, put errors in the same class when . They act identically on the stabilizer code up to scalar phase, so give the same error-image subspace. Under the criterion, different classes give mutually orthogonal subspaces , because their cross-compressions vanish. Measure which of these subspaces is occupied and apply the inverse of a representative error. This returns every stabilizer code state unchanged; extend the recovery on the orthogonal complement by preparing any fixed stabilizer code state. Linearity also corrects any valid noise channel whose Kraus operators are linear combinations of the specified errors: within each syndrome all amplitudes multiply the same logical state, and trace preservation normalizes the recovered state. This proves sufficiency, including degenerate error classes.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 35 2 Solution Created 2026-10-03 Updated 2026-10-14
For a classical error-correcting code of length , alphabet size , minimum Hamming distance and codewords, the Singleton bound isFor a linear code this is . Deleting any coordinates is injective on the codewords, since two words agreeing on the remaining coordinates would differ in fewer than positions; this also explains the classical bound.
For an n-qubit quantum code carrying logical qubits and having quantum code distance , the quantum Singleton bound isMore generally replace by for code dimension . The proof applies to degenerate codes too.
Let . Purify the maximally mixed encoded input by a reference of dimension :Distance makes erasure of any subset of at most qubits correctable. The allowed quantum erasure correction condition says that a correctable erased set is decoupled from :This is the matrix-element correction condition in another form: all operators on have constant diagonal matrix elements and zero off-diagonal matrix elements in the logical basis, so tracing the other physical qubits in yields the displayed product.
First justify the sizes needed for the partition. If , partition all physical qubits into , both of size at most . Both sets are correctable. Purity of and the Schmidt decomposition giveAdding forces , a contradiction. Thus , without assuming the bound we aim to prove.
Choose disjoint sets of size , and let contain the remaining qubits. The joint state is pure, so decoupling and Subadditivity of Von Neumann entropy giveAdding and cancelling gives . The Von Neumann entropy of -dimensional states is at most : for positive eigenvalues , concavity of the logarithm gives . Here , so , proving the quantum bound. The code is assumed to encode information (); a one-dimensional code requires a separate distance convention, since simply re-preparing a known state makes its erasure-correction condition vacuous.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 35 5 Solution Created 2026-10-03 Updated 2026-10-14
For a memoryless quantum channel , successive uses are described by . Its entanglement-assisted classical capacity is the supremum of classical bits per use achievable with error tending to zero when sender and receiver may use unlimited preshared quantum entanglement, independent of the message. Only the channel is used to transmit the message.
For input state , choose a purification and set . The capacity formula isPurifications differ only by an isometry on the reference, so this expression depends only on the input density matrix. The quantity optimized is quantum mutual information.
The binary quantum erasure channel sends a qubit to a qubit subspace plus an orthogonal erasure flag:On the nonerased branch it transmits the entire state, including its coherences. Put . The entropy of an orthogonal quantum mixture givesThe reference-output state has two orthogonal branches:The first branch is pure; the second has entropy . Thus andA qubit has entropy at most one bit, with equality at . We concludeThe endpoint capacities are two and zero. As an operational check, superdense coding encodes four classical messages in one member of a shared Bell pair. A successful channel use lets the receiver identify the message; an erased qubit yields the flag. This induces a four-symbol classical erasure channel of capacity , agreeing with the entropy calculation.