quri_parts.core.operator.representation.bsf module#
- class quri_parts.core.operator.representation.bsf.BinarySymplecticVector(x: int, z: int, phase: complex = 1)#
Bases:
NamedTuple
Binary symplectic vector representation for Pauli operators.
- x: int#
Alias for field number 0
- z: int#
Alias for field number 1
- phase: complex#
Alias for field number 2
- quri_parts.core.operator.representation.bsf.pauli_label_to_bsv(pauli: PauliLabel) BinarySymplecticVector #
Represent a PauliLabel as a binary symplectic vector.
- quri_parts.core.operator.representation.bsf.bsv_bitwise_commute(bsv1: BinarySymplecticVector, bsv2: BinarySymplecticVector) bool #
Return if two Pauli strings are bitwise commuting.