PauliMatrices.get_projection_matrices
- PauliMatrices.get_projection_matrices(q_set)[source]
Return the Pauli matrices that act only on qubits in q_set.
- Parameters:
q_set (Iterable[int]) – Active qubit indices
- Returns:
Pauli matrices from self acting only on qubits in q_set.
- Return type:
list[npt.NDArray[np.complex128]]
- Raises:
ValueError – if q_set is an invalid set of qubit indices.