Commit b3d60ce
Integration of HQS automatic backend selection (#234)
* added files from hqs
* black format
* wip
* first version of automatic selection is working
* modified parallel primitves
* wip
* wip
* wip
* wip
* wip
* wip
* cleaning
* wip
* Add more comments
* bug fix
* removed unimportant code
* fixed test
* wip
* ip
* doc strings fixed
* added test for parallel execution
* get everything working with fake backends
* added more tests for automatic selection
* add missng testjob
* update off docu and dependencies
* deleted tests
* reset of regression_example
* black
* fixed testjobs
* adjust testjobs
* black
* remove value checks in tests, since they are not reproduceable
* black
* remove result check from test_parallel_primtives.py
* cleaning of test
* black
* update executor graphic
* update of the doc
* fix of primitive
* removed print statement
* final run of black
* fix test
* fix some stuff
* Update src/squlearn/util/executor.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* Update src/squlearn/util/execution/backend_auto_selection.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* Update src/squlearn/util/execution/backend_auto_selection.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* Update src/squlearn/qnn/qnnr.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* Update src/squlearn/qnn/qnnc.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* Update src/squlearn/qnn/lowlevel_qnn_qiskit.py
Co-authored-by: Moritz <44642314+MoritzWillmann@users.noreply.github.com>
* fix in test
* renamed AutoSelBack
* fix pyproject.toml
* fix pyproject.toml v2
* fix pyproject.toml v3
* update of testjob
* black
* fix for testjobs
* fix test
* rechange dependencies
* remove IBMQuantum variable in the executor
* fix executor docstring
* black
* add docstring for select_backend, remove comments
* rename function
* change ValueError to TypeError
* fix if clauses
* update parallel primitives
* rename `parse_openqasm`
* clean backend auto selection code
* black
* fix in Qiskit lowleven QNN and fix of IBMQuantum variable in the executor
* black
* remove metric
* remove result comparison in parallel primitives
* make `heuristic` function and add tests
* black
* black tests
* rename remote and ibmquantum
* clean backend auto selection
* add hqaa modes
---------
Co-authored-by: Moritz <moritz.willmann@ipa.fraunhofer.de>1 parent 6b3aac7 commit b3d60ce
24 files changed
Lines changed: 2720 additions & 181 deletions
File tree
- docs
- _static/util
- modules
- user_guide
- src/squlearn
- kernel/matrix
- observables
- qnn
- util
- execution
- hqaa
- tests/util
- execution
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
| 64 | + | |
70 | 65 | | |
71 | | - | |
| 66 | + | |
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
110 | 111 | | |
| 112 | + | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | | - | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
34 | 38 | | |
35 | | - | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | | - | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
| 73 | + | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
| |||
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| 126 | + | |
120 | 127 | | |
121 | 128 | | |
122 | 129 | | |
| |||
324 | 331 | | |
325 | 332 | | |
326 | 333 | | |
327 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
328 | 339 | | |
329 | 340 | | |
330 | 341 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
0 commit comments