Skip to content

Commit fafe04a

Browse files
committed
fixing tests and package
1 parent acfee75 commit fafe04a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+152
-109
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# kirin-qourier
1+
# Bloqade-Shuttle
2+
3+
SDK for simulation and running QuEra's neutral atom quantum computers with explicit shuttling.

demo/log_depth_ghz.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
from typing import Any, Literal, TypeVar
33

44
from bloqade.geometry.dialects import grid
5-
from bloqade.qourier import action, gate, init, measure, schedule
6-
from bloqade.qourier.dialects import spec
7-
from bloqade.qourier.prelude import move, tweezer
8-
from bloqade.qourier.visualizer import MatplotlibRenderer, PathVisualizer
95
from kirin.dialects import ilist
106

7+
from bloqade.shuttle import action, gate, init, measure, schedule
8+
from bloqade.shuttle.dialects import spec
9+
from bloqade.shuttle.prelude import move, tweezer
10+
from bloqade.shuttle.visualizer import MatplotlibRenderer, PathVisualizer
11+
1112
NMove = TypeVar("NMove")
1213

1314

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[project]
2-
name = "bloqade-shuttle-internal" # This is the name of your package
2+
name = "bloqade-qourier" # This is the name of your package
33
version = "0.6.0-dev"
44
description = "Add your description here"
55
authors = [

src/bloqade/shuttle/analysis/zone/analysis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from dataclasses import dataclass, field
22

33
from bloqade.geometry.dialects import grid
4-
from bloqade.qourier.dialects.spec import Spec
54
from kirin import interp, ir
65
from kirin.analysis.forward import Forward, ForwardFrame
76

7+
from bloqade.shuttle.dialects.spec import Spec
8+
89
from .lattice import SpecZone, UnknownZone, Zone
910

1011

src/bloqade/shuttle/analysis/zone/impl/spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
from bloqade.qourier.dialects import spec
21
from kirin.analysis.forward import ForwardFrame
32
from kirin.interp import MethodTable, impl
43

4+
from bloqade.shuttle.dialects import spec
5+
56
from .. import analysis, lattice
67

78

src/bloqade/shuttle/codegen/taskgen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
from typing import Any, ClassVar, Dict, Optional
44

55
from bloqade.geometry.dialects import grid
6-
from bloqade.qourier.dialects import action
76
from kirin.dialects import func, ilist
87
from kirin.interp import Frame, Interpreter, InterpreterError, MethodTable, impl
98
from kirin.ir.method import Method
109
from typing_extensions import Self
1110

11+
from bloqade.shuttle.dialects import action
12+
1213

1314
class AbstractAction(abc.ABC):
1415
@abc.abstractmethod

src/bloqade/shuttle/dialects/action/stmts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from bloqade.geometry.dialects.grid import types as zone_types
2-
from bloqade.qourier.dialects.action._dialect import dialect
32
from kirin import ir, lowering, types
43
from kirin.decl import info, statement
54
from kirin.dialects import func, ilist
@@ -13,6 +12,8 @@
1312
)
1413
from kirin.print.printer import Printer
1514

15+
from bloqade.shuttle.dialects.action._dialect import dialect
16+
1617

1718
class TweezerFuncOpCallableInterface(CallableStmtInterface["TweezerFunction"]):
1819

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from kirin import ir
22

3-
dialect = ir.Dialect("bloqade.qourier.measure")
3+
dialect = ir.Dialect("bloqade.shuttle.measure")

src/bloqade/shuttle/dialects/measure/_interface.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import typing
22

33
from bloqade.geometry.dialects import grid
4-
from bloqade.qourier.dialects.measure.types import MeasurementArray
54
from kirin.lowering import wraps
65

6+
from bloqade.shuttle.dialects.measure.types import MeasurementArray
7+
78
from .stmts import Measure
89

910
NumX = typing.TypeVar("NumX", bound=int)

src/bloqade/shuttle/dialects/path/concrete.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
from bloqade.qourier.codegen import TraceInterpreter, reverse_path
2-
from bloqade.qourier.dialects import schedule
3-
from bloqade.qourier.dialects.path import dialect, stmts, types
41
from kirin.interp import (
52
Frame,
63
Interpreter,
@@ -9,13 +6,17 @@
96
impl,
107
)
118

9+
from bloqade.shuttle.codegen import TraceInterpreter, reverse_path
10+
from bloqade.shuttle.dialects import schedule
11+
from bloqade.shuttle.dialects.path import dialect, stmts, types
12+
1213

1314
@dialect.register
1415
class PathInterpreter(MethodTable):
1516

1617
@impl(stmts.Gen)
1718
def gen(self, interp: Interpreter, frame: Frame, stmt: stmts.Gen):
18-
from bloqade.qourier.prelude import tweezer
19+
from bloqade.shuttle.prelude import tweezer
1920

2021
device_task = frame.get(stmt.device_task)
2122
if isinstance(device_task, schedule.DeviceFunction):

0 commit comments

Comments
 (0)