qiskit.quantum_info.PauliList.delete¶
- PauliList.delete(ind, qubit=False)[ソース]¶
Return a copy with Pauli rows deleted from table.
When deleting qubits the qubit index is the same as the column index of the underlying
X
andZ
arrays.- パラメータ
ind (int or list) – index(es) to delete.
qubit (bool) – if
True
delete qubit columns, otherwise delete Pauli rows (Default:False
).
- 戻り値
the resulting table with the entries removed.
- 戻り値の型
- 例外
QiskitError – if
ind
is out of bounds for the array size or number of qubits.