Commit de0dc51
authored
Fix regression in scars tutorial: properly use noiseless backend when NO_NOISE=True (#2982)
* Fix regression in scars tutorial: properly use noiseless backend when NO_NOISE=True
The ibmq_executor_full function was always using the noisy backend,
ignoring the NO_NOISE flag. When NO_NOISE=True, the ideal Trotter
curve should be computed on backend_noiseless, not backend.
Also add warnings.filterwarnings to suppress UserWarnings that appear
during execution on the stable docs page.
Fixes #2973
* Simplify: use exec_backend instead of inline conditional
Resolves review comment by natestemen1 parent 154bf1b commit de0dc51
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
17 | 22 | | |
18 | 23 | | |
19 | 24 | | |
| |||
188 | 193 | | |
189 | 194 | | |
190 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
191 | 199 | | |
192 | 200 | | |
193 | | - | |
| 201 | + | |
194 | 202 | | |
195 | 203 | | |
196 | 204 | | |
| |||
200 | 208 | | |
201 | 209 | | |
202 | 210 | | |
203 | | - | |
204 | | - | |
| 211 | + | |
| 212 | + | |
205 | 213 | | |
206 | 214 | | |
207 | 215 | | |
| |||
0 commit comments