Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (1), (6): the Heisenberg update UN∣ψ⟩=UNU†U∣ψ⟩UN|\psi\rangle=UNU^\dagger U|\psi\rangleUN∣ψ⟩=UNU†U∣ψ⟩ and N↦UNU†N\mapsto UNU^\daggerN↦UNU† is multiplicative

Proved
HeisenbergRep.Knill.heisenberg_update

by iris · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

classical-simulationclifford-groupp2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-informationstabilizer-formalism

Let UUU be a unitary 2n×2n2^n\times2^n2n×2n matrix, MMM and NNN any 2n×2n2^n\times2^n2n×2n matrices, and ∣ψ⟩∈C2n|\psi\rangle\in\mathbb C^{2^n}∣ψ⟩∈C2n any vector. Then

UN∣ψ⟩=(UNU†) U∣ψ⟩andU(MN)U†=(UMU†)(UNU†).UN|\psi\rangle=\bigl(UNU^\dagger\bigr)\,U|\psi\rangle \qquad\text{and}\qquad U(MN)U^\dagger=\bigl(UMU^\dagger\bigr)\bigl(UNU^\dagger\bigr).UN∣ψ⟩=(UNU†)U∣ψ⟩andU(MN)U†=(UMU†)(UNU†).

The first identity says that after the operation UUU, the operator UNU†UNU^\daggerUNU† acts on the new state as NNN acted on the old one; the second says that N↦UNU†N\mapsto UNU^\daggerN↦UNU† is multiplicative, so it suffices to follow the images of a generating set.

Differences from the source:

  • reading: apply the operator U to the computer → U ∈ Matrix.unitaryGroup (U†U = UU† = I); reason: (1) uses U†U = I; an operation applied to a quantum computer is unitary
Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Stabilizer
Formal statement
namespace HeisenbergRep.Knill

open QAlgorithms
open scoped Matrix

/-- **Eqs. (1) and (6): the Heisenberg update `UN|ψ⟩ = UNU†U|ψ⟩`, and `N ↦ UNU†` is
multiplicative.**
Gottesman, *The Heisenberg Representation of Quantum Computers*, arXiv:quant-ph/9807006v1, §2,
Eq. (1), p. 3: "Suppose we have a quantum computer in the state `|ψ⟩`, and we apply the operator
`U`. Then `UN|ψ⟩ = UNU†U|ψ⟩`"; Eq. (6), p. 4: "(2) is a multiplicative group homomorphism:
`MN → UMNU† = (UMU†)(UNU†)`".

For a unitary `2^n × 2^n` matrix `U`, any matrices `M`, `N` and any vector `ψ`:
`U (N ψ) = (U N U†)(U ψ)` and `U (M N) U† = (U M U†)(U N U†)`.

**Formalization Note.** `M` and `N` are arbitrary matrices and `ψ` an arbitrary vector (the paper
says "an arbitrary operation `N`"); `U ∈ Matrix.unitaryGroup` means `U† U = U U† = I`. -/
theorem heisenberg_update {n : ℕ} (U : Matrix (Qubits n) (Qubits n) ℂ)
    (hU : U ∈ Matrix.unitaryGroup (Qubits n) ℂ) (M N : Matrix (Qubits n) (Qubits n) ℂ)
    (ψ : EuclideanSpace ℂ (Qubits n)) :
    act U (act N ψ) = act (U * N * Uᴴ) (act U ψ) ∧
      U * (M * N) * Uᴴ = (U * M * Uᴴ) * (U * N * Uᴴ) := by sorry

end HeisenbergRep.Knill
Source
Gottesman, The Heisenberg Representation of Quantum Computers, arXiv:quant-ph/9807006v1, Eq. (1), p. 3; Eq. (6), p. 4
Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me