bloqade.lanes.transform.move_to_squin.MoveToSquinLogical
← Module overview
class
classMoveToSquinLogical¶source
bloqade.lanes.transform.move_to_squin.MoveToSquinLogical
Bases: MoveToSquinBase
Rewrite pass for **logical** compilation.
Signature
class MoveToSquinLogical(arch_spec: ArchSpec, noise_model: LogicalNoiseModelABC, add_noise: bool = False, *, aggressive_unroll: bool = False)When add_noise is False, uses the clean initialization kernel
from the noise model for InsertGates to rewrite
PhysicalInitialize nodes. No noise is inserted.
When add_noise is True, the clean initialization kernel is
not passed to InsertGates. Instead, only InsertNoise
handles initialization using the noisy kernel, and gate/move noise
is inserted as well. This ensures initialization is applied exactly
once — either clean or noisy, never both.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | ArchSpec | required | |
noise_model | LogicalNoiseModelABC | required | |
add_noise | bool | False | |
aggressive_unroll | bool | False |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
noise_model | LogicalNoiseModelABC | required | |
add_noise | bool | False |