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

Method pushForBodyStack

python/cudaq/kernel/ast_bridge.py:776–778  ·  view source on GitHub ↗

Indicate that we are entering a for loop body block.

(self, bodyBlockArgs)

Source from the content-addressed store, hash-verified

774 return values
775
776 def pushForBodyStack(self, bodyBlockArgs):
777 """Indicate that we are entering a for loop body block."""
778 self.inForBodyStack.append(bodyBlockArgs)
779
780 def popForBodyStack(self):
781 """Indicate that we have left a for loop body block."""

Callers 1

createForLoopMethod · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected