Basis states are exactly tensor products of single-qubit basis states
ProvedQAlgorithms.Nannicini.basisState_iff_prod_basisStatesLet and let be a -qubit quantum state, i.e. a unit vector. Recall (Def. 1.16) that is a basis state if for some and some with . Then is a basis state if and only if there are single-qubit states , each of which is a basis state, such that
The statement shows that basis states are always product states, in contrast with superpositions, which can be entangled.
Formalization Note The -qubit register is indexed by with the first qubit as the most significant bit; the tensor product of the single-qubit states is the vector whose -coordinate is , with qubit of the source being the -th factor. Being a basis state already forces unit norm, so the unit-norm hypotheses are stated for fidelity to the source but are redundant.
import Definitions.Def_QAlgorithms_Defs_Measurement set_option autoImplicit false
namespace QAlgorithms.Nannicini
/-- Nannicini p.14, Proposition 1.19: a `q`-qubit register, `q > 1`, is in a basis state
(Def. 1.16: `|ψ⟩ = α_k |k⟩` with `|α_k|² = 1`) if and only if its state is the tensor product
`|ψ_1⟩ ⊗ ⋯ ⊗ |ψ_q⟩` of `q` single-qubit states each of which is a basis state. Wire `i` is the
source's qubit `i + 1` (the first qubit is the most significant). -/
theorem basisState_iff_prod_basisStates {q : ℕ} (hq : 1 < q)
(ψ : EuclideanSpace ℂ (Qubits q)) (hψ : IsState ψ) :
IsBasisState ψ ↔ ∃ φ : Fin q → EuclideanSpace ℂ Bool,
(∀ i, IsState (φ i) ∧ IsBasisState (φ i)) ∧ ψ = prodState φ := by
sorry
end QAlgorithms.Nannicini
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number with (so ). Index an -qubit vector by bit strings . Let be a unit vector, .
Call a vector a basis state if it equals for some index and some complex with . Here is the standard basis vector at .
For a family of single-qubit vectors in , define the product vector by
The theorem states that is a basis state if and only if there exist single-qubit vectors with both of the following properties:
- each has unit norm and is itself a basis state of , i.e. of the form with and ;
- .
The cases and are excluded by the hypothesis.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.