Skip to content

Commit 0140626

Browse files
committed
roll back changes that should have gone to other branch
1 parent 22ca236 commit 0140626

3 files changed

Lines changed: 2 additions & 28 deletions

File tree

QCLib/Circuit/Gate/Qubit.lean

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public import Mathlib.LinearAlgebra.Matrix.Hermitian
99
public import QCLib.LinearAlgebra.UnitaryGroup.RootsOfUnity
1010
public import QCLib.LinearAlgebra.StdBasis
1111
public import QCLib.Misc.OrderOf
12-
public import Mathlib.Analysis.InnerProductSpace.PiL2
1312

1413
import QCLib.Misc.IntCast
1514

@@ -78,7 +77,8 @@ noncomputable def T : 𝐔[Qubit] :=
7877

7978
noncomputable def R (k : ℕ) : 𝐔[Qubit] := ⟨!![1, 0; 0, ζ (2^k)], by
8079
rw [Matrix.mem_unitaryGroup_iff]
81-
matrix_expand ⟩
80+
matrix_expand
81+
8282

8383
@[matrixExpand]
8484
theorem H_eq : H.val = (√(1/2) : ℂ) • !![1, 1; 1, -1] := by rfl
@@ -291,8 +291,6 @@ def mns : (Qubit → ℂ) := ((√2)⁻¹ : ℂ) • (δ[0] - δ[1])
291291
def lft : (Qubit → ℂ) := ((√2)⁻¹ : ℂ) • (δ[0] + I • δ[1])
292292
def rgt : (Qubit → ℂ) := ((√2)⁻¹ : ℂ) • (δ[0] - I • δ[1])
293293

294-
def upl2 : EuclideanSpace
295-
296294
end
297295

298296
example : pls = (√2)⁻¹ • ![1, 1] := by matrix_expand [pls]

QCLib/LinearAlgebra/StdBasis.lean

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ This file also collects `•` application
3838
noncomputable def BasisVector {ι : Type*} [Finite ι] (i : ι) : (ι → ℂ) :=
3939
Pi.basisFun ℂ ι i
4040

41-
noncomputable def l2BasisVector {ι : Type*} [Finite ι] (i : ι) : (ι → ℂ) :=
42-
Pi.basisFun ℂ ι i
43-
4441
@[matrixExpand]
4542
theorem basisVector_def (ι : Type*) [Finite ι] (i : ι) :
4643
BasisVector i = Pi.basisFun ℂ ι i := by rfl

QCLib/Mathlib/LinearAlgebra/EuclideanPi-testing.lean

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)