qiskit.circuit.Instruction.reverse_ops¶
- Instruction.reverse_ops()[Quellcode]¶
For a composite instruction, reverse the order of sub-instructions.
This is done by recursively reversing all sub-instructions. It does not invert any gate.
- Rückgabe
- a new instruction with
sub-instructions reversed.
- Rückgabetyp