The entrywise Pauli model as a genuine tensor product #
def:pauli_basis builds the Pauli basis from tensor products of the one-qubit matrices I, X,
Y, Z, whereas this library computes with an entrywise model toMatrix. This file proves that
the two agree: toMatrix s is a power of i times the Kronecker product of the single-qubit
Pauli matrices of s.
The one-qubit matrices are specified independently, by their entries, and tensorPauli is built
recursively from Mathlib's Kronecker product. The comparison with toMatrix keeps the phase: the
positive tensor has phase exponent equal to the number of Y sites modulo four (yPhase),
whereas herm uses only the parity of that number. In particular, for two Y sites the two
representatives differ by a minus sign.
The algebra equivalence bitsMatrixEquiv at the end is noncomputable. It identifies the algebra
of matrices indexed by bit strings with the 2^n by 2^n matrices, without singling out a
binary or lexicographic ordering of the bit strings.
Main definitions #
qubitX,qubitY,qubitZ,qubitPauli: the one-qubit Pauli matrices, by their entries.tensorPauli n x z: the iterated Kronecker product of the one-qubit Paulis with bitsx,z.yPhase x z: the number ofYsites, modulo four.tensorRepresentative p: the Pauli string of classpwhose matrix istensorPauli.bitsMatrixEquiv n: matrices indexed byBits nas matrices indexed byFin (2 ^ n).
Main results #
toMatrix_eq_phase_tensor:toMatrix s = iPow (s.phase - yPhase s.x s.z) • tensorPauli n s.x s.z.toMatrix_tensorRepresentative:toMatrix (tensorRepresentative p) = tensorPauli n p.1 p.2.isSelfAdjoint_tensorRepresentative,isSelfAdjoint_tensorPauli: the positive tensors are Hermitian.trace_star_tensorPauli_mul,trace_tensorPauli_mul: they are orthogonal for the trace pairing, withTr (P Q) = 2 ^ nifP = Qand0otherwise.bitsMatrixEquiv_star: the change of index type preserves the adjoint.
The positive I/X/Z/Y representative of the local binary class, as in
def:pauli_basis.
Equations
Instances For
The exact Y-site phase modulo four, finer than the parity used by herm.
This is the positive tensor-product convention in def:pauli_basis.
Equations
- Lean4LPD.PauliString.yPhase x z = ∑ i : Fin n, ↑(x i * z i).val
Instances For
Iterated, genuine Kronecker product of the independently specified one-qubit Paulis.
The empty tensor is the one-by-one identity (def:pauli_basis).
Equations
- One or more equations did not get rendered due to their size.
- Lean4LPD.PauliString.tensorPauli 0 x_3 x_4 = 1
Instances For
The bit-indexed tensor product acts by the local matrix entry times its tail entry,
as required by def:pauli_basis.
Drop the first tensor factor, retaining the global phase in the remaining string;
an auxiliary definition for def:pauli_basis.
Instances For
The entrywise model factors into a one-qubit X^x Z^z entry and its tail. This is the
algebraic step relating toMatrix to def:pauli_basis.
The matrix model is the phase-corrected tensor product of Pauli matrices. For every
Pauli string s, toMatrix s is i ^ (s.phase - yPhase s.x s.z) times the Kronecker product
of the one-qubit Pauli matrices of def:pauli_basis. The identification of the entrywise model
with a tensor product is thus a theorem, not an assumption.
The positive tensor representative of a signless class, as in def:pauli_basis. Unlike
herm, its phase is the full count of Y sites modulo four, not only the parity.
Equations
- Lean4LPD.PauliString.tensorRepresentative p = { x := p.1, z := p.2, phase := Lean4LPD.PauliString.yPhase p.1 p.2 }
Instances For
The matrix of the positive tensor representative is exactly the tensor product of Pauli
matrices of def:pauli_basis, with no residual sign or phase.
Positive tensor representatives are genuine Hermitian Pauli strings, not just tensors
identified up to a freely chosen phase (def:pauli_basis).
The positive tensor representative has the intended signless class
(def:pauli_basis).
The literal tensor Pauli is self-adjoint, as required by def:pauli_basis.
Orthogonality of the positive tensor Pauli family, in the unnormalized convention of
def:pauli_basis. The normalized statement divides this pairing by 2^n.
The Hermitian form of the positive tensor Pauli trace pairing in def:pauli_basis.
A noncomputable numbering of the bit strings by Fin (2^n), matching the matrix dimension
2^n of def:pauli_basis. The bijection is unspecified: no particular order, such as the
lexicographic one, is asserted.
Equations
Instances For
The bit-indexed and dimension-indexed matrix algebras are isomorphic, the type-level
bridge needed by def:pauli_basis.