Skip to content

Commit

Permalink
removing unnecessary namespace declaration. (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 authored Dec 27, 2023
1 parent 825920b commit 7bbaa5c
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 114 deletions.
4 changes: 0 additions & 4 deletions src/bloqade/builder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/builder/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/builder/parse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/compiler/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/compiler/analysis/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/compiler/analysis/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 5 deletions src/bloqade/compiler/analysis/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/compiler/codegen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/compiler/codegen/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/compiler/codegen/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/compiler/passes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/compiler/passes/hardware/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/compiler/rewrite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/compiler/rewrite/common/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/emulate/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/emulate/codegen/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/emulate/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/ir/control/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/ir/control/traits/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 5 deletions src/bloqade/ir/location/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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: 0 additions & 4 deletions src/bloqade/ir/routine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/submission/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/submission/ir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
4 changes: 0 additions & 4 deletions src/bloqade/task/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@
try:
__import__("pkg_resources").declare_namespace(__name__)
except ImportError:
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
5 changes: 0 additions & 5 deletions src/bloqade/visualization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
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 7bbaa5c

Please sign in to comment.