Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The stabilizer and the second logical qubit commute with HHH

Proved
BaconThesis.Supercoherence.commute_codeHamiltonian

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

p2o-gran-per-chapterp2o-plan-bookp2o-v1quantum-error-correctionquantum-information

Let HHH be the four-qubit Hamiltonian (15.7), S1=σx⊗4S_1 = \sigma_x^{\otimes 4}S1​=σx⊗4​ and S2=σz⊗4S_2 = \sigma_z^{\otimes 4}S2​=σz⊗4​ the stabilizer generators of the [4,2,2][4,2,2][4,2,2] code (15.5), and Xˉ2=I⊗σx⊗σx⊗I\bar X_2 = I\otimes\sigma_x\otimes\sigma_x\otimes IXˉ2​=I⊗σx​⊗σx​⊗I, Zˉ2=σz⊗σz⊗I⊗I\bar Z_2 = \sigma_z\otimes\sigma_z\otimes I\otimes IZˉ2​=σz​⊗σz​⊗I⊗I the logical operators of the second encoded qubit (15.6). Then

[S1,H]=[S2,H]=[Zˉ2,H]=[Xˉ2,H]=0.[S_1, H] = [S_2, H] = [\bar Z_2, H] = [\bar X_2, H] = 0 .[S1​,H]=[S2​,H]=[Zˉ2​,H]=[Xˉ2​,H]=0.

Hence HHH preserves each stabilizer sector and acts only on the first encoded qubit.

Differences from the source:

  • encoding: the stabilizer of the [4,2,2] code → its generators S₁, S₂; reason: an operator commutes with the group generated by S₁, S₂ iff it commutes with S₁ and S₂
  • encoding: qubits 1–4 → Lean qubits 0–3 (Pauli strings over Fin 4); reason: index base only
Preamble
import Mathlib
import Definitions.Def_QMaxCutSDP_Rounding_Pauli
import Definitions.Def_BaconThesis_Supercoherence_S1
import Definitions.Def_BaconThesis_Supercoherence_S2
import Definitions.Def_BaconThesis_Supercoherence_X2bar
import Definitions.Def_BaconThesis_Supercoherence_Z2bar
import Definitions.Def_BaconThesis_Supercoherence_codeHamiltonian

open QMaxCutSDP.Rounding Matrix
Formal statement
namespace BaconThesis.Supercoherence

/-- Bacon, *Decoherence, Control, and Symmetry in Quantum Computers*, arXiv:quant-ph/0305025v1, §15.2, p.169 (PDF p.186): "The stabilizer of the [4, 2, 2] code commutes with this
Hamiltonian. Z̄2 and X̄2 also both commute with this Hamiltonian." The Hamiltonian `H` of (15.7)
commutes with the stabilizer generators `S₁, S₂` of (15.5) and with the logical operators `Z̄₂, X̄₂`
of (15.6).

**Formalization Note.** Four qubits, register `(Fin 4 → Fin 2) → ℂ`; Pauli strings via `QMaxCutSDP.Rounding.pauliString` (`pauli 0,1,2,3 = I, σ_x, σ_y, σ_z`); the book's qubit `k` is Lean's qubit `k - 1`. The stabilizer is generated by `S₁, S₂`, so commuting with the generators is commuting
with the stabilizer. -/
theorem commute_codeHamiltonian :
    Commute S1 codeHamiltonian ∧ Commute S2 codeHamiltonian ∧ Commute Z2bar codeHamiltonian ∧
      Commute X2bar codeHamiltonian := by sorry

end BaconThesis.Supercoherence
Source
Bacon, Decoherence, Control, and Symmetry in Quantum Computers, arXiv:quant-ph/0305025v1, §15.2, p.169 (PDF p.186)
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