German
Sprachen
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.PauliList.anticommutes_with_all

PauliList.anticommutes_with_all(other)[Quellcode]

Return indexes of rows that commute other.

If other is a multi-row Pauli list the returned vector indexes rows of the current PauliList that anti-commute with all Paulis in other. If no rows satisfy the condition the returned array will be empty.

Parameter

other (PauliList) – a single Pauli or multi-row PauliList.

Rückgabe

index array of the anti-commuting rows.

Rückgabetyp

array