Choose a Hilbert-Schmidt inner product orthonormal Hermitian operator basis with final element . A density operator has real coefficients and fixed final coefficient . The remaining coefficients form its generalized Bloch vector. Positivity restricts these real vectors to a compact convex body; for this body is not the entire Euclidean ball allowed by a purity bound.
Generalized Pauli matrix 2026-10-14
A traceless Hermitian matrix in a Hilbert-Schmidt inner product orthonormal basis of the real vector space of traceless Hermitian -by- matrices. One choice uses symmetric and imaginary antisymmetric off-diagonal matrix units, normalized by , and traceless diagonal generators. Together with they form an orthonormal basis of all Hermitian matrices. The coordinates give the Generalized Bloch representation.
Heisenberg-Weyl operator 2026-10-05
On a -dimensional Hilbert space, let and . The unitaries form an orthogonal operator basis under the Hilbert-Schmidt inner product.
For a real quantum optimal control objective , first variation gives the state equation, the adjoint equation, , and . The adjoint is taken for the Hilbert-Schmidt inner product. With dissipation it is essential to use , not silently the same generator as the forward state. These are necessary stationarity equations; they do not establish global optimality.
For the Fourier transform on a finite group, the displayed identity uses uniform expectation in the original function space and a weighted Hilbert-Schmidt inner product in the matrix components. In particular . For an abelian group, all , and the identity becomes a sum of squared scalar coefficients.
The four Pauli matrices form an orthogonal basis of matrices for the Hilbert-Schmidt inner product, since . A Hermitian density matrix therefore has real coefficients in this basis, and its trace-one condition fixes the identity coefficient. Thus
The multiplication rule for the Pauli matrices implies . Its trace is zero, so for its eigenvalues are ; for it vanishes. Hence
Positivity is equivalent to . Conversely every real vector in this unit ball defines a positive trace-one matrix by the boxed formula. Therefore is a one-to-one correspondence with the Bloch ball, with the displayed inverse. Each coordinate is linear in , proving the affine property under any convex mixture.
A density matrix is pure precisely when its eigenvalues are , equivalently when . The eigenvalue formula makes this equivalent to . Alternatively . Thus the pure states correspond exactly to the Bloch sphere.
For , put . The spectral projectors for the larger and smaller eigenvalues are
They are orthogonal rank-one projections, have sum , and give . For normalized eigenvectors in this nondegenerate case they equal and . Their Bloch vectors are therefore , the antipodal eigenprojectors of a qubit density matrix.
At , the state is and both eigenvalues coincide. There is no distinguished direction and the printed directional expression is undefined. Any orthonormal eigenbasis gives an antipodal pair of pure-state Bloch vectors, since its two projectors sum to , but that pair can point in any direction. The nonzero- qualification is essential. The PDF denominators are , not the converted TeX denominators involving .
Use the Hilbert-Schmidt inner product normalized by the dimension: . The identity and the three Pauli matrices are Hermitian, each has square , and each nonidentity Pauli matrix has zero trace. For distinct nonidentity indices, the Pauli matrix multiplication law gives , which is traceless. Therefore
There are four such orthonormal operators, and the complex vector space of two-by-two matrices has dimension four. Hence they form an orthonormal basis. Taking the inner product of any with each basis element proves, for arbitrary complex and not just Hermitian ones,
For example, if , its four coefficients are , , , and , respectively.
For the joint error, regard the two prescribed basis outputs as the columns of an environment-valued linear map. Its coefficient array in the usual output-row, input-column convention is
The source's other array is arranged as a column of the images of basis kets; it must not be mistaken for this coefficient array acting on an amplitude column. Applying the just-proved Pauli matrix expansion componentwise in any environment orthonormal basis gives the Pauli decomposition of a qubit-environment isometry:
To check the potentially delicate sign of the Pauli Y gate coefficient, use and . The four terms then give
Linearity proves the expansion for every input pure state. The environment coefficient vectors need not be normalized or mutually orthogonal. Consequently this expansion includes coherent combinations of Pauli errors, rather than asserting that every quantum channel is a probabilistic Pauli channel.
For the recovery probability, use the usual independent-use interpretation of the given phase-flip channel: each of the three transmitted qubits has a Pauli Z gate error independently with probability . The phase-flip repetition code uses logical codewords and . The decoding Hadamard gates convert physical phase flips to bit flips because . We can then analyze the two decoding controlled-NOT gates and the final Toffoli gate directly, rather than assuming a recovery rule.
Let be the error bits after this basis conversion. For a logical basis input , the three data bits before inverse encoding are . The two controlled-NOT gates produce
The Toffoli gate flips the first wire when both of the last two bits are one. Its residual error is
The last two wires carry an error syndrome independent of . Thus this transformation preserves the amplitudes of an arbitrary superposition: zero or one phase error returns the original unknown qubit, while two or three phase errors leave the logical Pauli X gate applied to it. The probability of universally successful recovery is therefore
Equivalently, the decoded quantum channel is , with logical failure of the three-qubit phase-flip repetition code . For , the failure probability is below , since . A special input that is a Pauli X eigenstate is unchanged even by the residual logical error; this does not make the code correct that error on an unknown input. Its squared quantum fidelity with a particular pure input is . If the errors on different channel uses are correlated, the marginal probability alone is insufficient: the general universal success probability is the probability of at most one error.
The terminal term is the objective reward. With the Hilbert-Schmidt inner product , a Hermitian target observable gives its final expected value. The vector is the density operator represented as a vector in operator space; it retains the same physical content as the density matrix, not a wavefunction of the system.
The term imposes the dynamical equation by a time-dependent costate . It is a Lagrange-multiplier operator in the same operator space, propagated backward from a terminal condition. It is not required to be a positive, trace-one density matrix. Define
Then the enforced state equation is . The uncontrolled coherent part is , the dissipative contribution is , and each describes a control coupling. For Quantum Hamiltonian control, .
The term is a quadratic field-energy or fluence penalty. For the positive scale and positive weights , larger make a given control amplitude more costly. Thus maximizing trades terminal performance against control fluence while enforcing the dynamics. The multiplier term vanishes on any dynamically feasible trajectory. The weights do not represent decoherence rates; they specify control-resource preferences.
At an unconstrained differentiable extremum the first variation vanishes independently with respect to the state, costate and real controls, with initial state fixed. For the real functional, take the real Hilbert-Schmidt pairing when necessary. The Euler-Lagrange equations are most clearly written using the forward generator :
Here the dagger is the adjoint for the Hilbert-Schmidt inner product, and is the vectorized terminal observable. Equivalently,
The adjoint is essential if is not self-adjoint: dissipative costate evolution must not be replaced by the forward dissipator.
For each unconstrained real field, stationarity gives
Thus . For Hermitian state and costate with Quantum Hamiltonian couplings, the contraction before taking its imaginary part is purely imaginary, and this is a real field. These are the Liouville-space costate equations for quantum optimal control.
Forward state propagation, backward costate propagation, and the control stationarity equations must be solved together. They give necessary conditions, not a certificate of global optimality. For a local maximum the second variation on admissible perturbations is nonpositive. If amplitude or bandwidth constraints are imposed, the unrestricted pointwise field equation must be replaced by the corresponding constrained stationarity condition.
Use the real vector space of Hermitian matrices and its Hilbert-Schmidt inner product . A Hermitian -by- matrix has real diagonal entries and two real parameters for each off-diagonal pair, hence real dimension . Imposing zero trace removes one real dimension. Each supplied generalized Pauli matrix is Hermitian and traceless, and there are off-diagonal matrices and diagonal matrices, totaling .
Their assumed orthonormality makes them linearly independent. Since this equals the dimension of the traceless space, they are an orthonormal basis of the traceless Hermitian matrices. To extend the family, the required additional generator is , which is implicit in the indexing of the question. It has unit Hilbert-Schmidt norm and is orthogonal to every traceless generator, so the extended family is an orthonormal basis of all Hermitian matrices.
For a density operator , cyclicity of the trace gives
Thus . Since , the resulting Generalized Bloch representation is
Write the unitary conjugation as . The identity component is unchanged, and the generalized Bloch vector transforms by
These coefficients are real, by the same trace argument as in part (a). Unitary conjugation preserves the Hilbert-Schmidt inner product, so the conjugated traceless generators form another orthonormal basis. It follows that . The unitary group is connected, , and the determinant of an orthogonal matrix is ; hence . Thus Hamiltonian evolution rotates the generalized Bloch vector by an element of .
Equivalently, in units , the Von Neumann equation gives
Cyclicity of the trace shows , so is a real skew-symmetric matrix. This is the generator form of Hamiltonian rotations of Bloch vectors, valid also for a time-dependent Quantum Hamiltonian. For , Hamiltonians generally realize only a proper subgroup of all rotations of this real space; they preserve the whole density-operator spectrum, not merely its purity of a density operator.
The physical space of qubits is . An error operator is a linear operator on this space, for example one Kraus operator of a noise quantum channel. The usual channel description assumes initially uncorrelated system and environment, with the environment subsequently ignored; more general initial correlations need not define a channel on arbitrary system inputs. Finite dimension and the tensor decomposition into identifiable qubits allow an exact Pauli expansion of a quantum error. No independence between errors on different qubits is assumed by this expansion.
The tensor products of form an orthogonal basis of the operator space under the Hilbert-Schmidt inner product. Equivalently, absorbing phases into coefficients, every error has an expansion
For a computational basis vector labelled by , this gives
where addition and the dot product in the exponent are modulo two. Thus changes a bit, changes its phase, and performs both up to a scalar phase. A general error is a coherent linear combination of such actions; it need not be a classical random choice of Pauli operators. A restriction to at most faulty qubits is an additional locality assumption, expressed by the span of Pauli operators of weight at most .
The weight of a Pauli operator is the number of tensor factors different from , ignoring global phase. Let be the orthogonal projector onto a -dimensional code . Quantum error detection means
Indeed, a projective measurement of flags departure from the code, while its code-space outcome acts as the scalar on every encoded state and hence does not change logical information. Harmless scalar actions are included in this criterion. The quantum code distance is
Thus every Pauli operator of weight at most is detectable. The condition is linear in , so it holds for any error in their span. This proves detection of arbitrary errors affecting at most qubits, including coherent errors.
For correction, put and take all phase-free Pauli operators of weight at most . Their pairwise products satisfy
These are the Knill--Laflamme conditions. Here is their recovery construction, rather than merely using the criterion's name. For any normalized code state , the matrix is a Gram matrix, since , and is therefore positive semidefinite. Choose linear combinations of the errors diagonalizing this matrix, so that
For , the operators are isometries from the code into mutually orthogonal error-image subspaces: . Measure the projectors and, on outcome , apply . Complete this recovery arbitrarily on the remaining orthogonal subspace to make a trace-preserving quantum channel.
For an error and any encoded density operator , the recovered contribution is
Terms with annihilate the code. For a physical noise channel whose Kraus operators belong to this span, summing the displayed scalar over those operators gives one by trace preservation. The resulting recovered state is exactly . This proves the constructive recovery from the Knill-Laflamme condition and the requested guarantee
This argument allows degenerate codes; distinct physical errors may have identical actions on the code.
For the Shor code, define . Its two normalized basis codewords are
Six stabilizer generators are ; the two phase checks are
All eight have eigenvalue on both basis codewords. A phase error commutes with the six checks and anticommutes with both and . Their projective measurements therefore return
The two negative phase checks identify the middle three-qubit block. Apply the Pauli Z gate to restore the state, since . This procedure acts identically on every logical superposition, and the checks reveal no logical amplitudes. The syndrome cannot distinguish from or , but all three have the same action on the code: their pairwise products lie in the stabilizer group. Correcting with any one of them is sufficient. Thus the degeneracy in the syndrome is harmless.
For target unitary operator and actual propagator on an -dimensional space, minimize the phase-insensitive unitary gate error
The Cauchy-Schwarz inequality for the Hilbert-Schmidt inner product gives a value in , because both unitary matrices have squared norm . The error is zero exactly when the matrices are proportional, namely . It therefore tests the full process, not just its action on one state, and ignores a physically irrelevant common phase. If the gate phase itself must be fixed, instead minimize , which vanishes only at exact equality.
Three standard objectives are state preparation, observable optimization and process implementation. All optimizations are over admissible control inputs and a specified final time .
For state preparation, steer an initial density operator to a target . An exact goal is , or one may minimize the squared Hilbert-Schmidt distance
For a pure target , maximizing is a useful alternative. The target must be physically attainable: Hamiltonian engineering alone preserves the initial spectrum of the density operator.
For an observable objective, choose a Hermitian operator and maximize its expected final value:
Population transfer is a special case with the projector onto the desired level or subspace; suppressing an unwanted population reverses the sign or minimizes this quantity.
For coherent process engineering, implement a target unitary operator on every input, rather than merely arranging one state transfer. If the propagator is , a phase-insensitive error is
The error vanishes precisely when : equality in the Hilbert-Schmidt inner product Cauchy-Schwarz inequality bound makes the two operators proportional. For an open-system process, the analogous objective compares the implemented quantum channel with the target channel. These objectives can be supplemented by pulse-energy, amplitude, bandwidth and duration constraints in quantum optimal control.
A basis of Hermitian matrices is a real basis for the Hermitian subspace, but it also supplies a complex basis for all matrices. Indeed every operator has the decomposition
with Hermitian. Expand each in the given real basis, then combine their coefficients to expand . Orthogonality for the Hilbert-Schmidt inner product determines those complex coefficients uniquely:
Consequently
If is Hermitian, cyclicity of the trace gives
Thus its coordinate vector is real. The product need not itself be Hermitian; trace cyclicity is what justifies the conclusion.
Let denote the Lindbladian. Substituting and projecting with the Hilbert-Schmidt inner product gives
For the Quantum Hamiltonian term, cyclicity of the trace yields
For each Lindblad dissipator, the same cyclic rearrangement gives
These are the required coefficient matrices, so . They are real because both generators map Hermitian matrices to Hermitian matrices, whose coordinates are real by (a).
The trace of a commutator vanishes. Also
Thus the last row of is zero and . It is trace preservation, not preservation of the purity of a density operator, that produces this constant coordinate.
Write and . Since , the remaining coordinates obey the Affine Bloch equation
Because and , its offset can also be written
It vanishes for unital dynamics, but need not vanish for a general dissipative evolution.
Density operator controllability cannot defeat unitary invariants: it grants access to the unitary orbit of a density operator, whose members have the same eigenvalues, rather than to every density operator. In the Hilbert-Schmidt inner product orthonormal normalization of this question,
Quantum Hamiltonian evolution preserves this norm, so the target is not reachable from the stated initial state. Equivalently, their values of purity of a density operator are and : the initial state is a mixed state and the target a pure state. Dissipation, an appropriate measurement protocol or an auxiliary system with additional resources would be needed to change the spectrum; freely controlling the closed-system Quantum Hamiltonian alone does not suffice.
A quantum optimal control problem specifies a terminal task, admissible fields and resource costs. Pure-state transfer can minimize ; mixed-state transfer on an accessible spectral orbit can minimize ; preparing an observable value can minimize . A gate task can minimize for an -dimensional Hilbert space, which is insensitive to an overall phase. These different terminal functions encode different tasks even when the dynamics are the same. Fluence penalties, amplitude bounds, bandwidth limits, or the total duration can be added to express experimental requirements.
For example, minimize
subject to and a specified . For a closed system, ; for an open system add the known Lindblad equation dissipator. Introducing a Hermitian costate and taking the Hilbert-Schmidt inner product gives the forward and backward equations and functional gradient
For Hamiltonian controls the second term is . The adjoint is defined by the Hilbert-Schmidt inner product; in particular, the closed-system costate equation is , integrated backward from its terminal condition. An unconstrained interior optimum has zero gradient; amplitude constraints replace this by the corresponding constrained first-order conditions.
Numerically, represent the fields by piecewise constant amplitudes on slices, or by a finite basis such as splines or Fourier modes. For piecewise constant closed-system dynamics, and . Forward products and backward costates provide all slice derivatives in one pair of propagations. In gradient ascent pulse engineering, update these amplitudes to improve the chosen objective, with projection onto amplitude bounds if needed. The exact slice derivative is the derivative of the matrix exponential
Replacing it by is only a short-slice approximation when and do not commute. Other gradient descent or nonlinear optimization methods can optimize the same finite parameter set; direct-adjoint looping avoids a separate dynamical simulation for each control coefficient.
A pulse is accepted after propagation with the actual constrained waveform confirms its terminal error and resource use. Sampling model uncertainties in the objective can favor robust pulses. Nonconvexity means a numerical stationary point need not be a global optimum, so initial guesses, convergence tolerances and a sufficiently resolved time grid matter.
The Hermitian operators form a real vector space of dimension . To see that the same basis spans all complex operators, decompose an arbitrary as , where and are Hermitian. Expand in the real orthonormal basis and combine their coefficients. The resulting complex expansion is unique because . Taking the Hilbert-Schmidt inner product with gives
If is Hermitian, then by cyclicity. Hence . The basis is a real basis of Hermitian operators and its complexification is a complex basis of all operators.