|
Ran
|
Jobs
1
|
Files
131
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix(transpiler): respect wire order in MergeSlaterDeterminantPreparation (#432) (#435) The pass compared and emitted gates by their sorted mode indices, but an InitializeModes indexes its occupation, and an OrbitalRotation its unitary, in the order of its own wires. A gate placed on permuted wires was therefore fused with its payload as written onto sorted wires, so the resulting PrepareSlaterDeterminant prepared a different state. This hit a rotation on permuted wires (e.g. modes (1, 0) after an init on all modes) as well as a permuted initialization, in every fusion pattern. The pass now permutes the occupation, and the rows and columns of the unitary alike, into sorted mode order before matching, so the existing pattern logic keeps working on sorted wires. The new state-preservation tests use two-mode rotations only: the unmerged reference synthesis of a multi-mode OrbitalRotation on permuted wires is itself slightly off (a separate, pre-existing issue), so the four-mode permutation case checks the fused gate's payload directly instead. (cherry picked from commit 6202b833d) Co-authored-by: Max Rossmannek <21973473+mrossinek@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
14 of 14 new or added lines in 1 file covered. (100.0%)
14577 of 14835 relevant lines covered (98.26%)
295613.46 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 44490551297.1 | 131 |
98.26
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|