-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
166 changed files
with
1,369 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
try: | ||
__import__("pkg_resources").declare_namespace(__name__) | ||
except ImportError: | ||
__path__ = __import__("pkgutil").extend_path(__path__, __name__) | ||
|
||
import importlib.metadata | ||
|
||
import bloqade.analog.ir as _ir | ||
from bloqade.analog.ir import ( | ||
Literal, | ||
Variable, | ||
var, | ||
cast, | ||
start, | ||
to_waveform as waveform, | ||
) | ||
from bloqade.analog.factory import ( | ||
linear, | ||
constant, | ||
rydberg_h, | ||
get_capabilities, | ||
piecewise_linear, | ||
piecewise_constant, | ||
) | ||
from bloqade.analog.constants import RB_C6 | ||
from bloqade.analog.serialize import load, save, dumps, loads | ||
|
||
__version__ = importlib.metadata.version("bloqade") | ||
|
||
|
||
def tree_depth(depth: int | None = None): | ||
"""Setting globally maximum depth for tree printing | ||
If `depth=None`, return current depth. | ||
If `depth` is provided, setting current depth to `depth` | ||
Args: | ||
depth (int, optional): the user specified depth. Defaults to None. | ||
Returns: | ||
int: current updated depth | ||
""" | ||
if depth is not None: | ||
_ir.tree_print.MAX_TREE_DEPTH = depth | ||
return _ir.tree_print.MAX_TREE_DEPTH | ||
|
||
|
||
__all__ = [ | ||
"RB_C6", | ||
"start", | ||
"var", | ||
"cast", | ||
"Variable", | ||
"Literal", | ||
"piecewise_linear", | ||
"piecewise_constant", | ||
"linear", | ||
"constant", | ||
"set_print_depth", | ||
"load", | ||
"save", | ||
"loads", | ||
"dumps", | ||
"rydberg_h", | ||
"waveform", | ||
"get_capabilities", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
src/bloqade/atom_arrangement.py → src/bloqade/analog/atom_arrangement.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
11 changes: 6 additions & 5 deletions
11
src/bloqade/builder/args.py → src/bloqade/analog/builder/args.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/bloqade/builder/backend/__init__.py → ...loqade/analog/builder/backend/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/bloqade/builder/backend/bloqade.py → ...bloqade/analog/builder/backend/bloqade.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/bloqade/builder/backend/braket.py → src/bloqade/analog/builder/backend/braket.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/bloqade/builder/backend/quera.py → src/bloqade/analog/builder/backend/quera.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/bloqade/builder/base.py → src/bloqade/analog/builder/base.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.