Skip to content

Circuit

Circuit

Circuit(kernel: Method)

Bases: _Circuit

This class inherits from stim.Circuit. For the full API reference of the underlying circuit class, see: https://github.com/quantumlib/Stim/blob/main/doc/python_api_reference_vDev.md#stim.Circuit

Parameters:

Name Type Description Default
kernel Method

The kernel to compile into a stim.Circuit.

required
Source code in .venv/lib/python3.12/site-packages/bloqade/stim/circuit.py
37
38
39
40
41
42
43
44
45
46
47
48
49
def __init__(self, kernel: ir.Method):
    """Initialize stim.Circuit from a kernel.

    This class inherits from `stim.Circuit`. For the full API reference of
    the underlying circuit class, see:
    https://github.com/quantumlib/Stim/blob/main/doc/python_api_reference_vDev.md#stim.Circuit

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

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