Apply one Hadamard gate to each of the qubits, with all gates acting in parallel. This quantum circuit implements the tensor product ; it needs single-qubit gates and one layer. For one qubit,Taking the tensor product of these expressions multiplies the probability amplitudes and adds their exponents, givingHere the dot product is evaluated using modular arithmetic modulo two.
In particular, an initially zero quantum register becomes the uniform quantum superpositionThis is useful at the start of a quantum algorithm because a subsequent quantum oracle acts on all these components coherently. Later quantum interference can reveal a global property of the function. Measuring immediately would merely produce a uniformly random binary string; the useful resource is the preserved quantum coherence, rather than the ability to read every function value in one run.
Write for bitwise exclusive or. Both quantum registers begin in . After the first Hadamard transform their joint quantum state isThe quantum oracle maps each component to . By linearity, the required quantum state is thereforeThe different first-register computational-basis states are orthogonal, so there are orthogonal joint components of squared probability amplitude , even though some second-register values coincide. Thus the displayed quantum state is normalized.
An observed value must lie in the image of . Choose either preimage . The two-to-one function promise and imply that its preimages are exactly and . A computational-basis measurement of the second quantum register projects the joint quantum state onto the unnormalized vectorBy the Born rule, . Dividing by its square root gives the conditional first-register pure stateChoosing the other preimage merely interchanges the two summands. The result is a Simon coset state, retaining quantum coherence between the two inputs that share the measured function value. Outcomes outside the image have probability zero and hence no conditional state to normalize.
Apply the Hadamard transform to the conditional quantum state from c. Since modulo two, its output isIf , the two probability amplitudes cancel by destructive quantum interference. If , they add, givingThus every observed string obeys . This Simon Fourier sampling is uniform on the -dimensional vector subspace over the two-element field. Indeed, the nonzero linear functional has a kernel of dimension by the rank-nullity theorem. The distribution does not depend on , so measuring or discarding the second quantum register gives the same statistics for the first.
Each run of Simon's algorithm uses one oracle call and returns one uniform sample from . Collect samples as rows of a matrix and solve over the two-element field using Gaussian elimination. Once the rows have matrix rank , the kernel is , so the promised nonzero vector is uniquely determined. Dependent samples, including , must be allowed for; exactly runs need not suffice.
For a rough quantitative estimate, put . When the existing samples span an -dimensional vector subspace of , the next sample increases the matrix rank with probability . The random spanning of a binary vector space estimate givesAlternatively, samples fail to span with probability less than : failure means some nonzero linear functional on the -dimensional space vanishes on every sample, and a union bound gives . ConsequentlyThe Gaussian elimination requires only a polynomial amount of classical work, for example bit operations for samples. The degenerate case needs no calls because the promise already specifies .
Classically, distinct inputs with equal function values reveal . Uniformly sampling distinct inputs finds such a function collision after roughly calls, by the birthday square-root scale. For sampled inputs, the expected number of colliding pairs is . The usual randomized classical query complexity of Simon's problem is therefore exponential in , on the scaleA straightforward exhaustive classical search instead uses calls. The square-root collision estimate is the sharper classical comparison; the quantum advantage concerns access to the promised quantum oracle, rather than an explicit table of all function values.
For any normalized vector , the Born rule assigns the probability to the corresponding rank-one orthogonal projection. This must be nonnegative for every , which is exactly positive semidefiniteness. For any complete orthonormal basis , the outcome probabilities must sum to one:Thus a Hermitian matrix represents a physical density matrix only ifThese conditions are also sufficient in finite dimension. The spectral theorem writes with and , describing a quantum state ensemble of pure states with valid mixing probabilities. A Hermitian matrix alone could have negative eigenvalues, hence negative measurement probabilities.
Expand the given pure state in the ordered computational basis :The coefficients have squared magnitudes , summing to one. The density matrix is the outer product , not the diagonal matrix of these four probabilities: its off-diagonal entries retain quantum coherence. ThereforeThe outer product is a Hermitian matrix and is positive semidefinite: . Its trace is one, and , as required for a pure state.
Let be the coefficient of . The partial trace contracts the repeated index of the discarded qubit:For the first qubit, each diagonal entry is and the upper off-diagonal entry is . For the second qubit, the diagonal entries are and , while the upper off-diagonal entry is . Thus the two reduced density matrices, each in computational basis order , areBoth have eigenvalues and trace one, so both are mixed states even though the joint quantum state is pure. Their different eigenvectors are visible in the useful rewriteAbsorbing the minus sign into one local basis vector makes this a Schmidt decomposition with nonnegative coefficients. It also checks both partial traces and exhibits the entanglement responsible for the mixed local descriptions.
For a Hermitian matrix , the spectral theorem gives , with real eigenvalues and a unitary matrix . HenceThe square root here is the unique positive square root of an operator. Taking the trace, which is unchanged by unitary similarity, provesFor a density matrix, all eigenvalues are nonnegative and sum to one. Its trace norm is thereforeThe absolute values cannot be omitted for a general Hermitian matrix, since positive and negative eigenvalues can cancel in its trace but never in its trace norm.
With no access to the discarded qubit, the two preparations are exactly the reduced density matrices in c, with equal prior probabilities. Their difference isSince , its eigenvalues are . The trace norm and trace distance are consequentlyThe Holevo–Helstrom theorem gives the optimumTo establish attainability, rather than only an upper bound, measure the Hermitian operatorwhere are Pauli matrices. Since , report first qubit for the positive outcome; second qubit for the negative outcome. The corresponding orthogonal projections are . Their success probability iswhich reaches the bound. Identical eigenvalues of the two density matrices do not make them indistinguishable: their eigenvectors differ, and this quantum measurement detects that difference.
Use the conventional phase gate in computational basis order . The single-qubit Hadamard gate and the successive quantum states areThe final Hadamard gate recombines the two components, givingThe leading factor in the last expression is a global phase. The Born rule therefore yieldsAt the output is certainly zero, whereas at it is certainly one. The phase gate changes no intermediate outcome probabilities; the final Hadamard gate converts a relative quantum phase into an observable quantum interference fringe.
Write . The Cauchy-Schwarz inequality gives because the two environment states are normalized. Immediately after the interaction, the joint quantum state isApplying the last Hadamard gate givesSince the environment is unobserved, the Born rule uses the squared norm of the environment-valued coefficient of :Thus the Hadamard interference with environment overlap formula isThe plus sign follows from the explicitly chosen phase gate and the order of the inner product. Equivalently, before the last Hadamard gate the partial trace over the environment givesThe complex environment overlap in qubit dephasing both reduces the quantum coherence by and adds a relative quantum phase . Orthogonal environment states have and give for every . If , the quantum interference fringe has full contrast and is only shifted; the qubit has not become mixed. For , is immaterial.
Moving the interaction to between the first Hadamard gate and the phase gate givesthe identical joint quantum state. Therefore the expression is unchanged. This is the commutation of computational-basis dephasing and phase gates; it uses the specified population-preserving interaction with the same environment states, rather than an arbitrary model of quantum decoherence.
Normalize the second qubit as . Since a Pauli X gate changes to , the Boolean quantum oracle acts asThis quantum phase kickback leaves the second qubit uncorrelated with the first. Put : for a constant function and for a balanced Boolean function. Apart from the irrelevant global phase , the first qubit and environment reachThe population-preserving interaction commutes with the quantum oracle on this answer-register input, so its placement before or after the oracle, between the two Hadamard gates, gives the same result. Substitute into b:The printed Deutsch algorithm uses the rule zero means constant function; one means balanced Boolean function. With that rule, the Deutsch algorithm with pure dephasing succeeds for either class withFor real nonnegative environment overlap this is , ranging from certainty at to random guessing at . For general complex overlap, a coherent shift can invert the printed answer: for example makes the printed rule always wrong. If the overlap is known but the printed quantum measurement is retained, choose the better labeling of its outcomes; this givesThere is a further improvement if a known can be compensated by the phase gate before the final Hadamard gate. It removes the coherent shift without reversing any actual quantum decoherence, and yieldsThis is optimal when only the first qubit is accessible, with equal prior probabilities for the two classes. Before the final Hadamard gate, their reduced density matrices areThe difference has eigenvalues , giving trace distance . The Holevo–Helstrom theorem therefore bounds the success probability by , exactly attained by the compensated procedure. A known phase shift and loss of coherence have different effects: at the two density matrices coincide and no measurement on the available qubit can reveal the answer.
Articles by others on the same topic
There are currently no matching articles.
