Skip to content

Commit

Permalink
Merge branch 'main' into fixing-local-detuning-braket-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 authored Oct 23, 2023
2 parents 83b5f42 + 624daff commit 00a3370
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ out.txt
.DS_Store
tests/data/jobs/
main.html
main*.py
main

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
2 changes: 2 additions & 0 deletions src/bloqade/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
)
import bloqade.ir as _ir
from bloqade.constants import RB_C6
from bloqade.submission.capabilities import get_capabilities

import importlib.metadata

Expand Down Expand Up @@ -52,4 +53,5 @@ def tree_depth(depth: int = None):
"dumps",
"rydberg_h",
"waveform",
"get_capabilities",
]
7 changes: 6 additions & 1 deletion src/bloqade/submission/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@


# TODO: Create unit converter for capabilities
def get_capabilities():
def get_capabilities() -> QuEraCapabilities:
"""Get the device capabilities for Aquila
Returns:
QuEraCapabilities: capabilities object for Aquila
"""
base_path = os.path.dirname(__file__)
full_path = os.path.join(
base_path, "quera_api_client", "config", "capabilities.json"
Expand Down

0 comments on commit 00a3370

Please sign in to comment.