rqutils.paulis.symplectic module
GPU-efficient symplectic representation of Pauli sums (rqutils.paulis.symplectic)
Symplectic representation of a Pauli string
Any Pauli string \(Q\) can be expressed as
\[Q = (-i)^{xz} \left(Z^{z_{n-1}} \otimes \cdots Z^{z_{0}}\right)
\left(X^{x_{n-1}} \otimes \cdots X^{x_{0}}\right)\]
where \(x\) (X signature) and \(z\) (Z signature) are binary vectors of length \(n\) (number of qubits) and \(xz\) represents their inner product.
Symplectic Pauli sum representation API
- class rqutils.paulis.symplectic.PauliSumXZ(x: ndarray[tuple[int, int], dtype[uint8]], z: ndarray[tuple[int, int, int], dtype[uint8]], c: ndarray[tuple[int, int], dtype[inexact]], num_qubits: int)
Symplectic (XZ) representation of a sum of Pauli strings.