def LOAD(target_reg, region_name, offset_reg): """ Produce a LOAD instruction. :param target_reg: LOAD storage target. :param region_name: Named region of memory to load from. :param offset_reg: Offset into region of memory to load from. Must be a MemoryReference. :return: A ClassicalLoad instance. """ return ClassicalLoad(unpack_classical_reg(target_reg), region_name, unpack_classical_reg(offset_reg))
def load(self, left, right, subscript): return ClassicalLoad(left, right, subscript)
def exitLoad(self, ctx): # type: (QuilParser.LoadContext) -> None self.result.append( ClassicalLoad(_addr(ctx.addr(0)), ctx.IDENTIFIER(), _addr(ctx.addr(1))))