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

Method debug_msg

python/cudaq/kernel/ast_bridge.py:417–427  ·  view source on GitHub ↗
(self, msg, node=None)

Source from the content-addressed store, hash-verified

415 return name in self.cudaqAliases
416
417 def debug_msg(self, msg, node=None):
418 if self.verbose:
419 print(f'{self.indent * self.indent_level}{msg()}')
420 if node is not None:
421 try:
422 print(
423 textwrap.indent(ast.unparse(node),
424 (self.indent *
425 (self.indent_level + 1))))
426 except:
427 pass
428
429 def emitWarning(self, msg, astNode=None):
430 """Emit a warning, providing the user with source file information and

Callers 9

pushValueMethod · 0.95
popValueMethod · 0.95
visitMethod · 0.95
visit_FunctionDefMethod · 0.95
visit_ExprMethod · 0.95
resolveQualifiedNameMethod · 0.95
visit_CallMethod · 0.95
visit_SubscriptMethod · 0.95
visit_ForMethod · 0.95

Calls 1

printFunction · 0.50

Tested by

no test coverage detected