Header menu logo Encodings

PauliRegister Module

Multi-qubit Pauli strings with phase tracking and symbolic multiplication.

This module provides two core types for representing quantum operators in the Pauli basis:

  • : A tensor product of single-qubit Pauli operators with a global phase coefficient: c · P₀ ⊗ P₁ ⊗ ... ⊗ Pₙ₋₁
  • : A sum of Pauli registers with complex coefficients, representing a general qubit Hamiltonian: H = Σₐ cₐ σₐ

Multiplication of two Pauli registers is exact and O(n): each qubit position is multiplied independently using the Pauli multiplication table, with phases accumulated into the global coefficient.

Types

Type Description

PauliRegister

Represents a tensor product of single-qubit Pauli operators with a complex coefficient.

PauliRegisterSequence

Represents a sum of PauliRegisters with complex coefficients.

Type something to start searching.