Utility function for adding a single target quantum operation to the MLIR representation for the PyKernel.
(self, opName, target, isAdj=False)
| 86 | |
| 87 | |
| 88 | def __singleTargetOperation(self, opName, target, isAdj=False): |
| 89 | """ |
| 90 | Utility function for adding a single target quantum operation to the MLIR |
| 91 | representation for the PyKernel. |
| 92 | """ |
| 93 | with self.insertPoint, self.loc: |
| 94 | __generalOperation(self, |
| 95 | opName, [], [], |
| 96 | target, |
| 97 | isAdj=isAdj, |
| 98 | context=self.ctx) |
| 99 | |
| 100 | |
| 101 | def __singleTargetControlOperation(self, opName, control, target, isAdj=False): |
nothing calls this directly
no test coverage detected