Skip to content

Commit

Permalink
adding lines to enable plugins for bloqade (#839)
Browse files Browse the repository at this point in the history
* adding lines to enable plugins for bloqade

* bump patch
  • Loading branch information
weinbe58 authored Dec 20, 2023
1 parent f59c2ed commit 4d9ef90
Show file tree
Hide file tree
Showing 28 changed files with 120 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bloqade"
version = "0.14.0"
version = "0.14.1"
description = "Neutral atom software development kit"
authors = [
{name = "QuEra Computing Inc.", email = "info@quera.com"},
Expand Down
5 changes: 5 additions & 0 deletions src/bloqade/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from bloqade.ir import var, cast, Variable, Literal, start
from bloqade.ir import to_waveform as waveform
from bloqade.serialize import load, save, loads, dumps
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/builder/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/builder/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from bloqade.builder.backend.quera import QuEraService
from bloqade.builder.backend.braket import BraketService
from bloqade.builder.backend.bloqade import BloqadeService
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/builder/parse/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/compiler/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/compiler/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/compiler/analysis/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .assignment_scan import AssignmentScan
from .check_slices import CheckSlices
from .is_constant import IsConstant
Expand Down
5 changes: 5 additions & 0 deletions src/bloqade/compiler/analysis/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .channels import ValidateChannels
from .piecewise_linear import ValidatePiecewiseLinearChannel
from .piecewise_constant import ValidatePiecewiseConstantChannel
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/compiler/codegen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/compiler/codegen/common/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/compiler/codegen/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .lattice import GenerateLattice
from .lattice_site_coefficients import GenerateLatticeSiteCoefficients
from .piecewise_constant import GeneratePiecewiseConstantChannel, PiecewiseConstant
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/compiler/passes/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/compiler/passes/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .define import (
analyze_channels,
add_padding,
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/compiler/rewrite/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/compiler/rewrite/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .add_padding import AddPadding
from .assign_to_literal import AssignToLiteral
from .assign_variables import AssignBloqadeIR
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/emulate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/emulate/codegen/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/emulate/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .scalar import var, cast, Scalar, Interval, Variable, Literal
from .control.waveform import (
Waveform,
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/ir/control/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/ir/control/traits/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .hash import HashTrait
from .append import AppendTrait
from .slice import SliceTrait
Expand Down
5 changes: 5 additions & 0 deletions src/bloqade/ir/location/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

from .location import AtomArrangement, ParallelRegister, LocationInfo, ListOfLocations
from .bravais import (
BoundedBravais,
Expand Down
4 changes: 4 additions & 0 deletions src/bloqade/ir/routine/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/submission/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/submission/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 4 additions & 0 deletions src/bloqade/task/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 5 additions & 0 deletions src/bloqade/visualization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

Use_bokeh = True

if Use_bokeh:
Expand Down

0 comments on commit 4d9ef90

Please sign in to comment.