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:

BinarySymplecticVector

bsv_bitwise_commute(bsv1, bsv2)#

Return if two Pauli strings are bitwise commuting.

Parameters:
Return type:

bool