Skip to content

Circuit

Circuit

Circuit(kernel: Method)

Bases: _Circuit

This class inherits from tsim.Circuit. For the full API reference of the underlying circuit class, see: https://queracomputing.github.io/tsim/latest/reference/tsim/circuit/

Parameters:

Name Type Description Default
kernel Method

The kernel to compile into a tsim.Circuit.

required
Source code in .venv/lib/python3.12/site-packages/bloqade/tsim/circuit.py
22
23
24
25
26
27
28
29
30
31
32
33
34
def __init__(self, kernel: ir.Method):
    """Initialize tsim.Circuit from a kernel.

    This class inherits from `tsim.Circuit`. For the full API reference of
    the underlying circuit class, see:
    https://queracomputing.github.io/tsim/latest/reference/tsim/circuit/

    Args:
        kernel: The kernel to compile into a tsim.Circuit.

    """
    program_text = _codegen(kernel)
    super().__init__(program_text)