Crate pauli

source · []
Expand description

A library for quantum Pauli operators.

This contains a definition of the single-qubit Pauli operators I, X, Y and Z and of general multi-qubit Pauli operators such as XYZ.

This library is built with error correction in mind thus the phases are ignored.


pub use Pauli::I;
pub use Pauli::X;
pub use Pauli::Y;
pub use Pauli::Z;


A Pauli operator optimized for sparse operations.


A single qubit Pauli operator without a phase.