Add a reference to an instruction and its context within a mutable sequence. Updates to the instruction set will modify the specified sequence in place.
(self, data: MutableSequence[CircuitInstruction], pos: int)
| 85 | self._instructions.append(instruction) |
| 86 | |
| 87 | def _add_ref(self, data: MutableSequence[CircuitInstruction], pos: int): |
| 88 | """Add a reference to an instruction and its context within a mutable sequence. |
| 89 | Updates to the instruction set will modify the specified sequence in place.""" |
| 90 | self._instructions.append((data, pos)) |
| 91 | |
| 92 | def inverse(self, annotated: bool = False): |
| 93 | """Invert all instructions. |
no test coverage detected