qiskit.quantum_info.Operator.apply_permutation¶
- Operator.apply_permutation(perm, front=False)[소스]¶
Modifies operator’s data by composing it with a permutation.
- 매개변수
perm (list) – permutation pattern, describing which qubits occupy the positions 0, 1, 2, etc. after applying the permutation.
front (bool) – When set to
True
the permutation is applied before the operator, when set toFalse
the permutation is applied after the operator.
- 반환
The modified operator.
- 반환 형식
- 예외 발생
QiskitError – if the size of the permutation pattern does not match the dimensions of the operator.