Commit b078f67
Add a backend for IonQ. (#391)
* Add a backend for IonQ.
* Update projectq/setups/ionq.py
Thanks for the correction!
Co-authored-by: Nguyen Damien <ngn.damien@gmail.com>
* Update docstring to match return type.
* Fix copyright header years, imports, docstring.
* Fix comment
* Fix measurement mappings and result parsing.
* Fix some bad logic with result probability mappings.
* Fix some erroneous test cases.
* Fix example code.
* Ensure qubits are "deallocated" and reset after job submit.
* Drop dependency on mappers in favor of API response mappings.
* Add better error handling for API/http errors.
* Fix tests.
* Update example notebook.
* Fix qubit mapping.
* Use a dedicated qubit mapper instead of bashing self.main_engine.
* Update backend, add tests, to reflect new mapper.
* Use response.registers instead of echoing metadata.
* Fix get_probability after register updates
* Fixes after rebase, use metadata to remamp qubit IDs on response
* Lint/CI/Format/Changelog fixes
* Always make sure to give a result, even if it's not likely
* Missed formatter issues
Co-authored-by: Nguyen Damien <ngn.damien@gmail.com>1 parent 0cf7322 commit b078f67
File tree
17 files changed
+2939
-1
lines changed- examples
- projectq
- backends
- _ionq
- setups
17 files changed
+2939
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
175 | 206 | | |
176 | 207 | | |
177 | 208 | | |
| |||
0 commit comments