Documentation

CslibFrontier.Foundations.Quantum.Register

Local unitaries on a pair of registers #

A quantum system with two registers has computational basis ι × κ. A unitary U on the first register acts on the whole system as U ⊗ I, the Kronecker product with the identity (Cslib.Quantum.onFirst), with entries (U ⊗ I)((i, k), (i', k')) = U(i, i') · [k = k']. Symmetrically, a unitary U on the second register acts on the whole system as I ⊗ U (Cslib.Quantum.onSecond).

Main definitions #

Main results #

noncomputable def Cslib.Quantum.onFirst {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup ι ℂ)) :

The unitary U ⊗ I acting as U on the first register of ι × κ and trivially on the second.

theorem Cslib.Quantum.onFirst_apply {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup ι ℂ)) (p q : ι × κ) :
↑(onFirst U) p q = ↑U p.1 q.1 * if p.2 = q.2 then 1 else 0
theorem Cslib.Quantum.coe_onFirst {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup ι ℂ)) :
↑(onFirst U) = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) (↑U) 1
noncomputable def Cslib.Quantum.onSecond {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup κ ℂ)) :

The unitary I ⊗ U acting trivially on the first register of ι × κ and as U on the second.

theorem Cslib.Quantum.onSecond_apply {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup κ ℂ)) (p q : ι × κ) :
↑(onSecond U) p q = (if p.1 = q.1 then 1 else 0) * ↑U p.2 q.2
theorem Cslib.Quantum.coe_onSecond {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup κ ℂ)) :
↑(onSecond U) = Matrix.kroneckerMap (fun (x1 x2 : ℂ) => x1 * x2) 1 ↑U