Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define public API #1030

Merged
merged 38 commits into from
Sep 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
98bd880
refactor: Start defining the public api through all module attribute
alecandido Sep 6, 2024
934e161
build: Add ruff and pycln configs, to treat init files consistently
alecandido Sep 6, 2024
9be1708
refactor: Drop pycln directive
alecandido Sep 6, 2024
54bdc74
test: Import qasm executor from defining module
alecandido Sep 6, 2024
2034813
docs: Import qasm executor from defining module
alecandido Sep 6, 2024
ad96503
fix: Import qasm executor from defining module
alecandido Sep 6, 2024
6896f75
refactor: Add pulses and sequence exports
alecandido Sep 6, 2024
ae2442c
feat!: Expose sweeeper API
alecandido Sep 16, 2024
2381c0e
feat!: Expose components API
alecandido Sep 16, 2024
a18449f
fix: Avoid exposing configs
alecandido Sep 16, 2024
3c26826
fix: Move qibolab content to private core subpackage
alecandido Sep 16, 2024
434088f
fix: Correct imports to adapt to core subpackage
alecandido Sep 16, 2024
9af9fd3
fix: Fix qm imports of other qibolab modules
alecandido Sep 16, 2024
aa87254
fix: Add instruments public subpackage
alecandido Sep 16, 2024
db71cc5
feat: Expose qm drivers
alecandido Sep 16, 2024
8d511af
feat: Expose era drivers
alecandido Sep 16, 2024
2885b6b
feat: Expose bluefors drivers
alecandido Sep 16, 2024
a087997
feat: Expose rohde & schwarz drivers
alecandido Sep 16, 2024
40186d6
feat: Expose drivers for the dummy instruments
alecandido Sep 16, 2024
8b594ca
fix: Fix import in C API
alecandido Sep 16, 2024
f22c164
fix: Remove unneeded scoped import
alecandido Sep 16, 2024
1b25fc7
fix: Remove further unneeded scoped import
alecandido Sep 16, 2024
af3a9e4
fix: Redirect leftover imports
alecandido Sep 16, 2024
a26812d
fix: Prevent circular imports
alecandido Sep 16, 2024
4bc5c50
test: Propagate imports redirect in tests
alecandido Sep 16, 2024
5894135
test: Fix imports in conf.py
alecandido Sep 16, 2024
3c036f9
build: Update pylint whitelist with new qualified path
alecandido Sep 16, 2024
d488702
feat: Expose dummy platform creation
alecandido Sep 16, 2024
9482e4a
docs: Redirect imports to use public api
alecandido Sep 16, 2024
f401521
feat: Expose config kinds and qubits
alecandido Sep 16, 2024
cbe8c77
feat: Expose dummy and bluefors directly in instruments
alecandido Sep 16, 2024
87277cc
feat: Expose dummy and bluefors directly in instruments
alecandido Sep 16, 2024
76c37e2
docs: Fix some references
alecandido Sep 17, 2024
a16d3cb
fix: Remove unused import
alecandido Sep 17, 2024
a08aaa4
refactor: Standardize import, imposing mild conventions
alecandido Sep 17, 2024
8daa663
docs: Remove mentions to the internal API in the lab tutorial
alecandido Sep 18, 2024
9a889b4
feat: Expose the platform locating function
alecandido Sep 18, 2024
26df7f2
test: Add test for platform localization
alecandido Sep 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Remove unneeded scoped import
  • Loading branch information
alecandido committed Sep 16, 2024
commit f22c164f2c370b8199f9a16900c9bd5fd1fd44ec
2 changes: 0 additions & 2 deletions src/qibolab/_core/backends.py
Original file line number Diff line number Diff line change
@@ -28,8 +28,6 @@ def execute_qasm(circuit: str, platform, initial_state=None, nshots=1000):
Returns:
``MeasurementOutcomes`` object containing the results acquired from the execution.
"""
from qibolab.backends import QibolabBackend

circuit = Circuit.from_qasm(circuit)
return QibolabBackend(platform).execute_circuit(
circuit, initial_state=initial_state, nshots=nshots