PauliTable#
-
class cuquantum.
stabilizer. PauliTable( - x_table: ndarray | cp.ndarray,
- z_table: ndarray | cp.ndarray,
- num_paulis: int,
- num_qubits: int,
- bit_packed: bool = False,
Holds Pauli frame table data.
The table can store data in one of 4 formats: - bit-packed on CPU - unpacked on GPU - bit-packed on GPU - unpacked on CPU
- x_table#
X bit table (NumPy or CuPy array)
- z_table#
Z bit table (NumPy or CuPy array)
Methods
- __init__(
- x_table: ndarray | cp.ndarray,
- z_table: ndarray | cp.ndarray,
- num_paulis: int,
- num_qubits: int,
- bit_packed: bool = False,
Initialize a PauliTable.
- Parameters:
x_table – X bit table (NumPy or CuPy array)
z_table – Z bit table (NumPy or CuPy array)
num_paulis – Number of Pauli samples
num_qubits – Number of qubits
bit_packed – Whether tables are in bit-packed format (default:
False)
Attributes