|
Ran
|
Jobs
1
|
Files
131
|
Run time
1min
|
Badge
README BADGES
|
push
github
fix: synthesize a hop with a Z-string exactly (#428) (#430) The Givens mesh pairs modes that are adjacent within the gate. When an OrbitalRotation or PrepareSlaterDeterminant sits on permuted or non-contiguous wires, some of those pairs are not adjacent on the register, so their Jordan-Wigner image carries a Z-string. HopEvolutionSynthesis only recognized weight-2 hops and declined these, which left them to a one-step product formula. Their XX + YY and XY - YX parts do not commute, so a rotation with complex entries came out slightly wrong (overlaps of 0.996-0.9998), even though the mapping itself was correct. The Z-string commutes with the rest of the generator and only flips the sign of the evolution time on the odd-parity subspace, which a CZ on one end reproduces. `match_hop` therefore now accepts two X/Y ends with Z on every other qubit of the support, and returns a circuit: a CX ladder that computes the parity onto one qubit, the XXPlusYYGate between two CZ controlled on it, and the ladder undone. This is an operator identity, so the Z-string does not have to lie between the two ends. It is also cheaper than the product formula it replaces. The deprecated Givens plugins use the same matcher and are fixed with it. The new end-to-end tests compare against the exact evolution of the Jordan-Wigner generator rather than the reference pipeline, which shared the bug. (cherry picked from commit d17101414) Co-authored-by: Max Rossmannek <21973473+mrossinek@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
30 of 30 new or added lines in 2 files covered. (100.0%)
2 existing lines in 2 files now uncovered.14540 of 14791 relevant lines covered (98.3%)
296492.85 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
99.51
|
-0.49% | crates/core/src/mappers/qk_obs.rs |
| 1 |
95.0
|
-0.08% | python/qiskit_fermions/transpiler/passes/synthesis/hop_evolution.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 44487981040.1 | 131 |
98.3
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|