qiskit.circuit.ControlFlowOp.inverse¶
- ControlFlowOp.inverse()¶
Invert this instruction.
If the instruction is composite (i.e. has a definition), then its definition will be recursively inverted.
Special instructions inheriting from Instruction can implement their own inverse (e.g. T and Tdg, Barrier, etc.)
- 반환
a fresh instruction for the inverse
- 반환 형식
- 예외 발생
CircuitError – if the instruction is not composite and an inverse has not been implemented for it.