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

Method getIntegerAttr

python/cudaq/kernel/kernel_builder.py:327–331  ·  view source on GitHub ↗

Return an MLIR Integer Attribute of the given IntegerType.

(self, type, value)

Source from the content-addressed store, hash-verified

325 return ty, None
326
327 def getIntegerAttr(self, type, value):
328 """
329 Return an MLIR Integer Attribute of the given IntegerType.
330 """
331 return IntegerAttr.get(type, value)
332
333 def getIntegerType(self, width=64):
334 """

Callers 1

getConstantIntMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected