Skip to content

Analog circuit

AnalogCircuit

AnalogCircuit is a dummy type that bundle register and sequence together.

register property

register

Get the register of the program.

Returns:

Type Description

register (Union["AtomArrangement", "ParallelRegister"])

Note

If the program is built with [parallelize()][bloqade.builder.emit.Emit.parallelize], The the register will be a [ParallelRegister][bloqade.ir.location.base.ParallelRegister]. Otherwise it will be a [AtomArrangement][bloqade.ir.location.base.AtomArrangement].

show

show(**assignments)

Interactive visualization of the program

Parameters:

Name Type Description Default
**assignments

assigning the instance value (literal) to the existing variables in the program

{}
Source code in src/bloqade/ir/analog_circuit.py
def show(self, **assignments):
    """Interactive visualization of the program

    Args:
        **assignments: assigning the instance value (literal) to the
            existing variables in the program

    """
    display_ir(self, assignments)