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 #
Cslib.Quantum.onFirst: the unitaryU ⊗ Ionι × κ.Cslib.Quantum.onSecond: the unitaryI ⊗ Uonι × κ.
Main results #
Cslib.Quantum.onFirst_apply,Cslib.Quantum.onSecond_apply: their entries.Cslib.Quantum.coe_onFirst,Cslib.Quantum.coe_onSecond: their matrices areU ⊗ₖ 1and1 ⊗ₖ U.
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 : ι × κ) :
theorem Cslib.Quantum.coe_onFirst {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup ι ℂ)) :
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 : ι × κ) :
theorem Cslib.Quantum.coe_onSecond {ι : Type u_1} {κ : Type u_2} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] (U : ↥(Matrix.unitaryGroup κ ℂ)) :