Write . The Cauchy-Schwarz inequality gives because the two environment states are normalized. Immediately after the interaction, the joint quantum state is
Applying the last Hadamard gate gives
Since 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 is
The 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 gives
The 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 gives
the 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.
A good atomic qubit needs two reproducible, orthogonal internal states whose populations and relative quantum phase survive for many gate times. Both should be long lived, with weak spontaneous emission and little decoherence from fluctuating fields or atomic motion. Their transition must nevertheless permit fast, selective, coherent control with little leakage to other states. Reliable initialization and state-selective quantum measurement are also required; optical pumping and fluorescence readout can supply these functions.
For rubidium-87, use the two ground state hyperfine levels in the electronic configuration. The electronic angular momentum is , and addition of angular momentum to the given nuclear spin gives . A suitable Rubidium-87 clock qubit is
These are coupled electron-nucleus angular momentum eigenstates, rather than two bare nuclear-spin projections. Their hyperfine structure supplies a resolvable splitting . Both belong to the electronic ground state, avoiding a short optical excited-state lifetime. Since the weak-field Zeeman shift is proportional to , both have zero linear shift at : their rubidium-87 clock transition suppresses first-order magnetic-field dephasing near zero field. A quadratic Zeeman shift of a clock transition and differential optical shifts remain. A small stable bias field can define the quantization axis and help resolve unwanted transitions, at the cost of some residual magnetic sensitivity.[ref]
Drive the magnetic dipole transition with a resonant microwave field of suitable polarization, here , or use two phase-coherent optical fields for a far-detuned stimulated Raman transition with their frequency difference resonant with . The optical excited state is then only virtually populated, reducing spontaneous emission. In the rotating frame and rotating-wave approximation, define the drive phase by the effective Hamiltonian
Here are the Pauli matrices on the chosen qubit, and is the Rabi angular frequency. Pulse duration controls the rotation gate angle, while phase selects the axis in the equatorial plane of the Bloch sphere. A pulse exchanges the populations; a pulse makes an equal quantum superposition from either basis state. Controlled Rabi detuning, a differential energy shift, or compositions of these pulses give rotations. For example, realizes any one-qubit unitary operator up to a global phase. Thus the atomic encoding admits arbitrary single-qubit quantum gates.
Use the ordered computational basis , with qubit 1 written first. The half-time gate requires a branch convention. Even stationary Hamiltonian evolution with does not uniquely specify : different accumulated eigenstate phases can agree at and differ at . In particular, both and below square to SWAP gate and leave unchanged. Adopt the conventional continuous isotropic exchange interaction branch, with a relative singlet phase increasing from to during the full pulse. This is the exchange square-root branch convention.
The symmetric and antisymmetric eigenstates
have SWAP gate eigenvalues . Let and be their antisymmetric and symmetric orthogonal projectors. The adopted exchange evolution is
For effective spin-one-half qubits, , an isotropic exchange interaction plus an energy offset that fixes the common phase. At half time choose on the symmetric sector and on the antisymmetric sector, the conventional principal square-root value of . Hence the square root of the SWAP gate is
Thus , , and , where and . The identities and verify , and the projector form proves unitarity. The endpoint truth table alone would allow other matrix square roots; the stated exchange branch supplies the additional physical assumption.
For the network, fix the Pauli Z gate, Hadamard gate and S gate conventions
The letter distinguishes this local S gate from the two-qubit exchange gate . In particular ; replacing by changes the network. Subscripts specify the acted-on qubit: , and . Operators act rightmost first, so the printed quantum circuit is
First multiply the central two exchange pulses. Since , their off-diagonal terms cancel:
This reduces the entire network to . Its action on all four computational basis states, retaining every relative quantum phase, is
Equivalently,
It flips the second qubit when the first is zero and contributes when the first is one. That conditional phase cannot be discarded as a global phase.
To obtain the standard CNOT gate controlled by qubit 1, append an gate to qubit 2 and to qubit 1. They commute, and
For control zero, undoes the original flip. For control one, it supplies the desired flip and cancels the phase because . This phase-corrected exchange network for a CNOT gate realizes the standard gate exactly with the declared conventions.
Finally, has equal Schmidt coefficients and is maximally entangled: a half exchange creates quantum entanglement although a full SWAP gate does not. More constructively, the network above produces a CNOT gate from two half exchanges and local gates. Since CNOT gates and arbitrary single-qubit unitary operators form a universal quantum gate set, the square root of the SWAP gate and arbitrary single-qubit gates are universal. The alternative inverse exchange branch remains entangling and universal, but its phases and local correction must be recomputed consistently.
Use the Hadamard basis states . The Hadamard gate satisfies , , and . After the first three Hadamard gates, the full quantum state is
The Pauli X gate obeys . Consequently the Boolean quantum oracle produces phase kickback:
Factoring out the ancilla qubit, the four states immediately after the function oracle are
The final Hadamard gates send to and to . In particular, the printed quantum circuit includes a final Hadamard gate on the ancilla qubit too. Its full outputs, ordered as , are
Thus one oracle call identifies with certainty: a computational-basis measurement of the first two qubits returns . The ancilla qubit returns to and carries no additional information about . The Bernstein-Vazirani algorithm turns the pattern of relative quantum phases into a definite computational-basis state.
A full fringe scan is unnecessary. Use the same components to make three fixed projective measurements, on separate batches of identically prepared photons. Direct path detection after the polarizing beam splitter measures the populations. Recombine after matching the arm photon polarizations, once with and once with , to measure the two quadratures of the quantum coherence.
In the basis, write the density matrix in terms of its Bloch vector as . The previous formula becomes
Thus three measured relative frequencies give
and determine
The two interferometric settings analyze the diagonal linear polarizations and the circular polarizations , with detector labels fixed by the calibrated quantum phase convention. This is informationally complete three-observable qubit tomography: direct measurements in three bases replace fitting an entire phase-dependent fringe. It also reconstructs a mixed input, for which , although the source here is assumed pure.
Simply measuring transmission through one fixed polarizing beam splitter would determine only . Rotating a linear analyzer through different angles can additionally determine , but cannot distinguish the two signs of without a relative-phase measurement. For arbitrary, possibly elliptical photon polarization, all three settings above are needed; no extra analyzer element beyond the described path-phase control and photon polarization rotator is required.
Write the unknown pure photon polarization qubit as
The polarizing beam splitter sends the component down the lower path and the component up the upper path. After rotating the upper photon polarization to , both paths have the same internal quantum state and can interfere at BS2. Absorb fixed apparatus phases into a calibrated zero for the tunable quantum phase. With the preceding reflection convention, the quantum state before BS2 is , so the two output amplitudes are
Consequently
Repeated counts while scanning determine the complex quantum coherence . The interference visibility is , and the fringe position determines the relative quantum phase whenever both components are nonzero.
A fringe alone is not enough to determine an arbitrary photon polarization quantum state: it fixes but not which of and is larger. Indeed, and both give the flat fringe . For a general pure quantum state, the two possible population differences are
Resolve this ambiguity by temporarily detecting the two paths before BS2. Their relative counts give and using the same polarizing beam splitter and detectors. Taking as a global-phase choice, the reconstructed quantum state for is
If , it is up to a global phase. This completes interferometric polarization tomography. The counts are obtained from many identically prepared photons; they do not identify an arbitrary quantum state from one photon.
Use the symmetric lossless beam splitter convention with transmission amplitude and reflection amplitude . The two mirrors contribute the same fixed quantum phase, which can be suppressed. At the rightward port , the upper-arm route has one reflection at BS1 and one transmission at BS2, while the lower-arm route has one transmission at BS1 and one reflection at BS2. Their probability amplitudes therefore add as
By the Born rule,
For the upward port, the two amplitudes are and , giving and . They sum to one, as required for an ideal lossless Mach-Zehnder interferometer. Thus is bright at zero relative quantum phase and dark at quantum phase . A fixed unequal reflection quantum phase or a swapped port labeling would shift the fringe; the stated convention fixes the port and quantum phase calibration used below.
Without the upper-arm rotation, the photon polarization still labels the path. Before BS2 the quantum state is
After the balanced beam splitter, the polarization-valued output amplitudes are
The detectors do not resolve photon polarization. Since , the cross terms vanish in the Born rule:
These probabilities are independent of the tunable quantum phase and the input photon polarization, so there is no usable wave interference fringe. Equivalently, taking the partial trace over photon polarization removes the quantum coherence between the two path quantum states. The which-path information is retained in orthogonal photon polarizations even without anybody measuring it. Rotating the two occupied photon polarization quantum states to the same quantum state removes that distinction and allows the cross term in part (ii).
A central application is quantum order finding, which supplies the quantum step in the Shor algorithm for factoring an integer . Choose an integer coprime to , and let be its multiplicative order modulo . On valid residue quantum states define the reversible modular-multiplication unitary operator , extending it reversibly to any unused computational basis quantum states.
The orbit has the orthonormal eigenstates
for . One need not know to prepare an eigenstate: the easy input makes quantum phase estimation sample one of these eigenphases. Its control register estimates . With chosen at least of order , the nearest quantum phase label has rational approximation error small enough for continued-fraction recovery in quantum order finding. For instance, gives on the nearest-label event. If and are coprime, the recovered denominator is ; otherwise one obtains a divisor and can repeat, combine candidates and verify them by modular exponentiation.
When the verified order is even and , the greatest common divisors
give nontrivial factors: their product is divisible by , while neither factor inside the gcd is zero modulo . Unsuccessful choices of or quantum phase samples are handled by repetition and classical verification. Controlled powers of are implemented by efficient reversible modular arithmetic, rather than by naively applying exponentially many times.
Quantum phase estimation turns modular-multiplication eigenphases into an efficiently usable period, enabling quantum factoring in time polynomial in the bit length of the integer. Factoring is important to public-key cryptography, and this is a major example of a quantum algorithm improving on known classical methods. Another use is extracting energy eigenvalues by applying quantum phase estimation to a controlled time-evolution operator, with care to avoid energy aliasing and to prepare an input having overlap with the desired eigenstate.
Write , with . Decode the measured bits as above. The probability amplitude of label is
Using the finite geometric series,
Interpret removable singularities by continuity. In particular, near-grid quantum phase estimation returns the nearby exact label with probability
This is near one under the stated small-offset assumption, but not exactly one when .
There is also a rigorous error bound. Taking the squared modulus of the sum gives
where and the elementary sums of and evaluate the last expression. Hence
On that event the circular quantum phase error is at most . For other labels, the exact probabilities are
Their total is , describing the leakage from the perfect solution. The physical output bit string remains reversed in the printed circuit; this changes its decoding, not these probabilities.
Put and write , with normalized. The Hadamard gates prepare the control register in . Controlled powers of the unitary operator then give quantum phase kickback:
Thus the register quantum state is , while the target remains . Define the quantum Fourier transform by . Its inverse gives
When , the inner finite geometric series equals if and zero otherwise. Therefore exact quantum phase estimation gives
The quantum phase, rather than an unrestricted integer , is recovered modulo .
The printed circuit has no bit-reversal swaps. Its top control uses , and its measured top wire gives the least significant output bit. Write . Before the top wire's final Hadamard gate, its relative quantum phase is , so that gate produces . The controlled inverse quantum phase gates then subtract its contribution from lower wires. More generally, before the final Hadamard gate on wire , the relative quantum phase is
so that wire gives deterministically. For the three-wire drawing, the correct interpretation is
Equivalently, its Fourier-inversion circuit is , where reverses the register bits. Relabeling the measured bits or appending swaps gives the usual integer output. This bit convention matters, for example, when quantum phase produces top-to-bottom bits , representing the label four rather than one.
Number the physical wires from top to bottom and write a computational basis ket in that order. The first four are ancilla qubits and the fifth carries the input. It is enough to follow the basis input , , because the encoding quantum circuit acts linearly.
The first fan-out consists of four controlled-NOT gates from wire 5 to wires 1–4. It sends to . The three Hadamard gates then give
The two Pauli X gates on wires 2 and 3, followed by a Controlled-Z gate and the same two X gates, restore the bits but contribute : the sign is negative exactly when the original bits on both wires were zero. Finally, the right-hand controlled-NOT gates are , , and . They leave the first three bits unchanged and turn the last two into and . Thus
Explicitly, the logical basis quantum states produced by the printed gates are
Each has eight orthogonal terms of equal magnitude, and their supports are disjoint, so they are normalized and mutually orthogonal. The arbitrary input is therefore encoded as
This is a realization of the five-qubit error correcting code. The input amplitudes and their relative quantum phase are preserved in the logical subspace; the encoding is an entangled-state linear isometry, not five independent copies of the unknown input. The explicit signs and bit ordering above are fixed by this circuit, rather than by a convention for a different encoder.
At fixed particle number , an equilibrium wavefunction is a constrained critical point of the energy functional. Introduce the chemical potential as the Lagrange multiplier for , and impose . The resulting stationary cubic-quintic Gross–Pitaevskii equation is
The time-dependent equilibrium has , so its number density is stationary even though its quantum phase changes uniformly. The specified particle number fixes together with the boundary conditions. In an infinite uniform bulk, particle number is understood through a finite volume or a prescribed bulk density.
For the displayed scaling, assume and . Set
Substituting in the stationary cubic-quintic Gross–Pitaevskii equation and dividing by gives
The uniform-state relation proves , so the real bulk amplitude is one; its constant quantum phase can be chosen to make in the zero-winding sector. The unit of distance is the kinetic-to-chemical-potential scale, reducing to the stated healing length convention for purely repulsive two-body coupling.
The positive- assumption is necessary for the printed sign convention. If , the real length is , and the dimensionless linear term is , with interaction coefficients divided by ; the displayed equation with linear term does not follow. At this scaling is undefined. These are limitations of this particular nondimensionalization, not a claim that all cubic-quintic bulk states have positive chemical potential.
Define the physical velocity potential by , so the superfluid velocity is . The condensate number current is
Multiplying the pumped Gross–Pitaevskii equation by and subtracting its complex conjugate gives the density equation. Equivalently, substituting the amplitude and phase and equating imaginary parts yields
Equating real parts gives the other gain-loss Madelung equations relation,
The last term is the quantum potential, retained wherever . Taking a gradient gives the equivalent velocity equation
in an irrotational region. In equilibrium and , so
This convention distinguishes the physical velocity potential from the dimensionless quantum phase ; using the latter instead would change the divergence prefactor.
Here equilibrium means a time-independent number density and current, with a common temporal quantum phase. Write with real , since an imaginary temporal frequency would change the density. The stationary pumped Gross–Pitaevskii equation is
The chemical potential is the common phase-rotation frequency times ; this open system has no conserved particle-number constraint fixing it as in the conservative problem. Local gain and loss need not cancel separately in an inhomogeneous equilibrium, because a stationary condensate number current can transport particles between gain and loss regions.
Use the dimensionless quantum phase , so that with . Work locally away from wavefunction nodes, where and are differentiable. Differentiating the wavefunction for substitution in the Time-dependent Schrödinger equation gives:
Cancel in the time-dependent equation and equate real and imaginary parts. The resulting Madelung equations are
The second equation is a Hamilton-Jacobi equation for the action , with an additional quantum potential. To see the meaning of the first, multiply it by and set . It becomes the probability continuity equation
Thus the probability density is transported by the velocity field . The Madelung equations are a local rewriting of the linear wave equation; their apparent nonlinearity comes from expressing a complex wavefunction in modulus and phase variables.
For the separated stationary state, restore its time factor . Away from radial nodes, the quantum phase is , up to a constant or where the real radial function has fixed sign. The guidance equation in plane polar coordinates therefore gives the Bohmian circulation of an angular-momentum eigenstate
The direction is for and for ; the velocity is zero for . Each admissible trajectory is a circle:
The orbital angular momentum along the trajectory is . The origin or any zero-amplitude circle is excluded from this local formula. For the real degenerate superposition constructed above, the spatial quantum phase is constant on each nodal sector, so its Bohmian mechanics velocity is instead zero. Thus the circular motion is a conclusion about the separated angular-momentum eigenstate, not an arbitrary energy eigenstate.
The Born rule depends only on transition probabilities
between rays. A physical transformation must preserve these probabilities. By Wigner theorem, such a ray transformation is induced by a unitary or antiunitary operator. For ordinary continuously connected transformations one chooses the unitary branch, so
The states and represent the same ray. They may therefore differ by a state-independent quantum phase:
Thus quantum transformations form a projective unitary representation.
If is a symmetry of the Hamiltonian operator , it also obeys
equivalently . For a differentiable one-parameter subgroup, write
with a self-adjoint generator . Differentiating the symmetry equation at yields
For a time-independent , the Heisenberg picture equation is
Hence the generator is a conserved observable. Conversely, a self-adjoint conserved commutes with and its unitary group generates symmetries. This is the conserved generator of a continuous quantum symmetry.
For
the phase of the th stationary state is
Reflection in the midpoint gives
so
The minus sign is a global quantum phase and therefore does not change the physical state. The relative even--odd phases first acquire this reflection pattern at . Applying it twice gives
If vanishes on the right half of the well, then vanishes on the left half. The Born rule consequently gives zero probability of finding the particle in at time .