Pauli strings and the Pauli twirl #
On n qubits, with computational basis the bit strings ι → Bool, the bit flip
X^a |z⟩ = |z + a⟩ (Cslib.Quantum.pauliXPow) and the phase flip Z^b |z⟩ = (-1)^{b · z} |z⟩
(Cslib.Quantum.pauliZPow) are the tensor products of the single-qubit Pauli matrices X and Z
on the qubits where a, respectively b, is one. Their product X^a Z^b
(Cslib.Quantum.pauliString) runs over the 4ⁿ Pauli strings up to phases.
The Pauli twirl, averaging P ρ Pᴴ over the 4ⁿ strings P = X^a Z^b, is the completely
depolarizing map: ∑_{a, b} X^a Z^b ρ (X^a Z^b)ᴴ = 2ⁿ tr ρ • 1 (Cslib.Quantum.sum_pauliTwirl).
Summing over b first kills the off-diagonal entries, by orthogonality of the characters
b ↦ (-1)^{b · z} (Cslib.BitString.sum_signVal_dotProduct_mul_signVal_dotProduct), and summing
over a then averages the diagonal. With a reference system the twirl gives
2ⁿ 1 ⊗ Tr_A ρ (Cslib.Quantum.sum_pauliTwirl_kronecker_one), so it also erases every
correlation with the reference. For one qubit this is de Wolf, Chapter 18,
Exercise 5(a); it is the heart of the quantum one-time pad
(CslibFrontier.Crypto.Protocols.Quantum.OneTimePad).
Main definitions #
Cslib.Quantum.pauliXPow,Cslib.Quantum.pauliZPow:X^aandZ^b.Cslib.Quantum.pauliString:X^a Z^b.
Main results #
Cslib.Quantum.pauliXPow_mul,Cslib.Quantum.pauliZPow_mul,Cslib.Quantum.pauliZPow_mul_pauliXPow:X^a X^{a'} = X^{a+a'},Z^b Z^{b'} = Z^{b+b'}andZ^b X^a = (-1)^{a·b} X^a Z^b.Cslib.Quantum.pauliString_mem_unitaryGroup: Pauli strings are unitary.Cslib.Quantum.sum_pauliTwirl:∑_{a, b} X^a Z^b ρ (X^a Z^b)ᴴ = 2ⁿ tr ρ • 1.Cslib.Quantum.sum_pauliTwirl_kronecker_one: with a reference system,∑_{a, b} (X^a Z^b ⊗ 1) ρ (X^a Z^b ⊗ 1)ᴴ = 2ⁿ 1 ⊗ Tr_A ρ.
References #
Pauli strings #
The Pauli string X^a Z^b.
Pauli strings are unitary.
The Pauli twirl #
The entries of X^a Z^b ρ (X^a Z^b)ᴴ.
The Pauli twirl is completely depolarizing:
∑_{a, b} X^a Z^b ρ (X^a Z^b)ᴴ = 2ⁿ tr ρ • 1 on n = |ι| qubits.
The Pauli twirl with a reference system: twirling the first system of ρ on
ℂ^{(ι → Bool) × κ} gives 2ⁿ 1 ⊗ Tr_A ρ, a product state, so every correlation with the
reference system is erased.