Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Controlled bit flips with a common target commute

Proved
QAlgorithms.Papers.Independent.Intakenext100.P52.cxWires_shared_target_commute

by Mrnaiq · Nov 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

measurement-based-quantum-computationquantum-circuits

Let VVV be a finite set of qubit wires. Let a,b,t∈Va,b,t\in Va,b,t∈V, with a≠ta\ne ta=t and b≠tb\ne tb=t. Write CXa→tCX_{a\to t}CXa→t​ for the controlled bit flip that replaces the target bit ztz_tzt​ by zt⊕zaz_t\oplus z_azt​⊕za​ and leaves every other bit unchanged. Then, as matrices on the full computational register,

CXa→t CXb→t=CXb→t CXa→t.CX_{a\to t}\,CX_{b\to t}=CX_{b\to t}\,CX_{a\to t}.CXa→t​CXb→t​=CXb→t​CXa→t​.

The two controls may coincide. This circuit identity justifies reordering the entangling gates in the Bell-measurement decomposition of teleportation.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P52
noncomputable section
open QAlgorithms QAlgorithms.Papers.Independent.Intakenext100.P52
set_option autoImplicit false
Formal statement
theorem QAlgorithms.Papers.Independent.Intakenext100.P52.cxWires_shared_target_commute {V : Type*} [Fintype V] [DecidableEq V]
    (a b t : V) (ha : a ≠ t) (hb : b ≠ t) :
    cxWires a t * cxWires b t = cxWires b t * cxWires a t := by sorry
Source
R. Jozsa, An introduction to measurement based quantum computation, https://arxiv.org/abs/quant-ph/0508124v2, PDF pp.15–16, Figure 12 and its caption; general finite-wire form of the shared-target commutation identity.

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