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

Function isQuantumType

python/cudaq/kernel/utils.py:365–367  ·  view source on GitHub ↗
(ty)

Source from the content-addressed store, hash-verified

363 name = name or "tuple"
364
365 def isQuantumType(ty):
366 return quake.RefType.isinstance(ty) or quake.VeqType.isinstance(
367 ty) or quake.StruqType.isinstance(ty)
368
369 numQuantumMembers = sum((isQuantumType(t) for t in mlirEleTypes))
370 if numQuantumMembers == 0:

Callers 1

mlirTryCreateStructTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected