Compile
compile_squin_to_move
compile_squin_to_move(
mt: Method,
no_raise: bool = True,
layout_heuristic: LayoutHeuristicABC | None = None,
placement_strategy: PlacementStrategyABC | None = None,
insert_return_moves: bool = True,
) -> ir.Method
Compile a physical squin kernel to the move dialect.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/compile.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
compile_squin_to_move_and_visualize
compile_squin_to_move_and_visualize(
mt: Method,
interactive: bool = True,
animated: bool = False,
no_raise: bool = True,
layout_heuristic: LayoutHeuristicABC | None = None,
placement_strategy: PlacementStrategyABC | None = None,
insert_return_moves: bool = True,
) -> None
Compile a physical squin kernel to moves and visualize the program.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/compile.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | |
compile_to_physical_squin_noise_model
compile_to_physical_squin_noise_model(
mt: Method,
noise_model: NoiseModelABC | None = None,
no_raise: bool = True,
arch_spec=None,
layout_heuristic: LayoutHeuristicABC | None = None,
placement_strategy: PlacementStrategyABC | None = None,
insert_return_moves: bool = True,
) -> ir.Method
Compile a physical squin kernel to physical squin with inserted noise channels.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/compile.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | |
compile_to_stim_program
compile_to_stim_program(
mt: Method,
noise_model: NoiseModelABC | None = None,
no_raise: bool = True,
arch_spec=None,
layout_heuristic: LayoutHeuristicABC | None = None,
placement_strategy: PlacementStrategyABC | None = None,
insert_return_moves: bool = True,
) -> str
Compile a physical squin kernel to a Stim program string.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/compile.py
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |