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

Method popAllValues

python/cudaq/kernel/ast_bridge.py:766–774  ·  view source on GitHub ↗
(self, expectedNumVals)

Source from the content-addressed store, hash-verified

764 return val
765
766 def popAllValues(self, expectedNumVals):
767 values = [
768 self.popValue() for _ in range(self.valueStack.currentNumValues)
769 ]
770 if len(values) != expectedNumVals:
771 self.emitFatalError(
772 "processing error - expression did not produce a valid "
773 "value in this context", self.currentNode)
774 return values
775
776 def pushForBodyStack(self, bodyBlockArgs):
777 """Indicate that we are entering a for loop body block."""

Callers 2

__groupValuesMethod · 0.95
visit_TupleMethod · 0.95

Calls 3

popValueMethod · 0.95
emitFatalErrorMethod · 0.95
rangeFunction · 0.50

Tested by

no test coverage detected