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