MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / __singleTargetOperation

Function __singleTargetOperation

python/cudaq/kernel/kernel_builder.py:88–98  ·  view source on GitHub ↗

Utility function for adding a single target quantum operation to the MLIR representation for the PyKernel.

(self, opName, target, isAdj=False)

Source from the content-addressed store, hash-verified

86
87
88def __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
101def __singleTargetControlOperation(self, opName, control, target, isAdj=False):

Callers

nothing calls this directly

Calls 1

__generalOperationFunction · 0.85

Tested by

no test coverage detected