StabilizerTable.commutes_with_all¶
- StabilizerTable.commutes_with_all(other)¶
Return indexes of rows that commute other.
If other is a multi-row Pauli table the returned vector indexes rows of the current PauliTable that commute with all Pauli’s in other. If no rows satisfy the condition the returned array will be empty.
- Parameters
other (PauliTable) – a single Pauli or multi-row PauliTable.
- Returns
index array of the commuting rows.
- Return type
array