bloqade.tsim.circuit.Circuit
← Module overview
class
classCircuit¶source
bloqade.tsim.circuit.Circuit
Bases: _Circuit
A `tsim.Circuit` that can be built from a squin kernel or a program string.
Signature
class Circuit(kernel: ir.Method | str, *args=(), insert_ticks: bool = False, **kwargs={})Parameters
| Name | Type | Default | Description |
|---|---|---|---|
kernel | ir.Method | str | required | The kernel to compile into a tsim.Circuit, or a STIM program string to pass directly to the underlying circuit. |
*args | — | () | |
insert_ticks | bool | False | When compiling a kernel, insert a ``TICK`` after every gate, reset, measurement, and noise operation so the diagram preserves the authored execution-order layering. Ignored when ``kernel`` is a program string. |
**kwargs | — | {} |