Commit d53bbc4
When `VF2PostLayout` is set in strict mode, we have to include even
active but uncoupled qubits in the interaction graph, because of the
semantic constraints. We need to limit the number of these uncoupled
qubits we'll consider, though, because there's a factorial overhead to
handling them.
A previous commit[^1] added this skip to `strict_direction=False`, but
didn't correctly handle the continuation case where we're within the
limit. This commit correctly clears out the uncoupled-qubit metadata
that was causing problems in later layout reconstruction.
[^1]: b4094dd: Fix calls to `VF2PostLayout` after optimization loop at O3
(cherry picked from commit 2d73e5d)
Co-authored-by: Jake Lishman <[email protected]>
1 parent d4537c1 commit d53bbc4
File tree
2 files changed
+41
-6
lines changed- qiskit/transpiler/passes/layout
- test/python/transpiler
2 files changed
+41
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
355 | 382 | | |
356 | 383 | | |
357 | 384 | | |
| |||
0 commit comments