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

Internal global backend _Global #1440

Merged
merged 69 commits into from
Oct 23, 2024
Merged
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
bdbdc7e
GlobalBackend -> _Global
Sep 9, 2024
98d07ff
GlobalBackend -> _Global
Sep 9, 2024
b3fcc2a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 9, 2024
f8a3cfc
disable not callable error
Sep 9, 2024
5b312bf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 9, 2024
4697a9f
disable not callable error
Sep 9, 2024
e58157b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 9, 2024
583d26b
fix bug
Sep 10, 2024
2419d7d
add funcs
Sep 10, 2024
e8126a2
Merge branch 'master' into qibo_global
Sep 16, 2024
32ed23a
update test funcs
Sep 16, 2024
435c5f5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 16, 2024
94cb879
update review
Sep 18, 2024
53fa831
Merge branch 'master' into qibo_global
Oct 1, 2024
efb22c5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 1, 2024
b2f82d5
update test files
Oct 7, 2024
c828f67
Merge branch 'master' into qibo_global
Oct 7, 2024
8b3a95a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
352015b
fix test
Oct 7, 2024
59b0c71
qcnn.py get_backend -> get_backend_name
Oct 7, 2024
907bebb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
7cd16a4
remove resolve_global
Oct 7, 2024
a3c993d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
79ef360
remove resolve_global
Oct 7, 2024
b3614a4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
69189f4
remove resolve_global
Oct 7, 2024
0f68533
fix test_backends_global
Oct 7, 2024
b9b10d7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
2dc6797
add reset_global
Oct 7, 2024
cf39210
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 7, 2024
b7209ad
add reset global
Oct 7, 2024
f0a4c4c
Merge branch 'qibo_global' of github.com:qiboteam/qibo into qibo_global
Oct 8, 2024
c6391b6
fix error mitigation
Oct 8, 2024
23f6054
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
a63fbe9
update docs (replace 'GlobalBackend')
Oct 8, 2024
a3083d7
Merge branch 'qibo_global' of github.com:qiboteam/qibo into qibo_global
Oct 8, 2024
15be594
coverage
Oct 8, 2024
6a1c921
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 8, 2024
d4670f6
fix test_set_get_transpiler
Oct 8, 2024
6b04315
Merge branch 'qibo_global' of github.com:qiboteam/qibo into qibo_global
Oct 8, 2024
5c32260
Merge branch 'master' into qibo_global
Oct 8, 2024
dcd318a
add clear in conftest.py
Oct 9, 2024
3e99140
pytest autouse & default transpiler prototype
Oct 9, 2024
535c5a4
hw backend prototype
Oct 10, 2024
eba4f5e
hw backend prototype
Oct 10, 2024
5613c4c
fix: hw attributes check
Oct 11, 2024
b44c13a
fix: temporary _default_transpiler for current transpiler
Oct 14, 2024
11548da
feat: create NativeGates from list[str]
Oct 14, 2024
fcfb579
Merge branch 'master' into qibo_global
Oct 14, 2024
e0292cc
fix: return value of default transpiler
Oct 14, 2024
3c29f61
feat: test files for _Global._default_transpiler
Oct 15, 2024
3eeff46
fix: unused import/vars
Oct 15, 2024
a4ee205
fix: else after return
Oct 15, 2024
be12cf9
fix: improve star/line/grid connectivity helper functions
Oct 15, 2024
84dc20c
fix: remove Nativegates.from_gate(str)
Oct 15, 2024
bdb31b5
fix: remove _Global._backend usage / deprecate get_backend_name
Oct 15, 2024
6fe4205
fix: remove pragma / improve _execute_circuit in error_mitigation.py
Oct 15, 2024
9e7cc6b
fix: add pragma
Oct 15, 2024
8c02e78
Merge branch 'master' into qibo_global
Oct 15, 2024
6c77fde
fix: minor docstring update
Oct 16, 2024
e913307
feat: enable initializing NativeGates from list[str]
Oct 16, 2024
933f08c
fix: pylint error
Oct 16, 2024
08107cd
fix: Flag OR operation in FlagMeta
Oct 16, 2024
0990076
fix: Restore previous flag meta implementation
alecandido Oct 16, 2024
5d260e3
fix: add docstring in FlagMeta
Oct 16, 2024
3bc74dd
Merge branch 'qibo_global' of github.com:qiboteam/qibo into qibo_global
Oct 16, 2024
731b8a1
fix: undef variable
Oct 16, 2024
33a9984
fix: type hint update
Oct 18, 2024
65bdfee
fix: type hint update for python3.9
Oct 18, 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
remove resolve_global
changsookim committed Oct 7, 2024
commit 79ef360ac7b3e97dbf113dba78c1e24c0d968ab3
14 changes: 0 additions & 14 deletions tests/test_backends_global.py
Original file line number Diff line number Diff line change
@@ -110,20 +110,6 @@ def test_check_backend(backend):
assert test.name == target.name
assert test.__class__ == target.__class__


def test_resolve_global():
from qibo.backends import _Global

_Global._backend = None
_Global._transpiler = None

assert _Global._backend is None
assert _Global._transpiler is None
_Global.resolve_global()
assert issubclass(_Global._backend.__class__, qibo.backends.Backend)
assert _Global._transpiler is not None


def _star_connectivity():
Q = [i for i in range(5)]
chip = nx.Graph()