Skip to content

bloqade.tsim.circuit.Circuit

← Module overview

classCircuitsource

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

NameTypeDefaultDescription
kernelir.Method | strrequiredThe kernel to compile into a tsim.Circuit, or a STIM program string to pass directly to the underlying circuit.
*args—()
insert_ticksboolFalseWhen 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—{}