• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 18349671697
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 08 Oct 2025 04:04PM UTC
Jobs 1
Files 871
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Oct 2025 03:22PM UTC coverage: 88.237% (+0.02%) from 88.217%
18349671697

push

github

web-flow
Check target gates are parameterized in optimize1qgatesdecomposition (#15131)

* Check target gates are parameterized in optimize1qgatesdecomposition

This commit updates the Optimize1qGatesDecomposition transpiler pass to
check the defined operation in the target to ensure it's a valid gate to
use for the decomposition. Previously the pass would just use the gate
name for each qubit and treat that as a basis gate list. However this
ignored the extra details that the target provides as a target gate can
match the name but not be valid for use in synthesis. This commit fixes
that oversight by checking the gates directly and ensuring they're valid
for use in the decomposition.

Fixes #14743

* Fix release note typos

Co-authored-by: Jake Lishman <jake@binhbar.com>

* Simplify logic in pass

Since this PR is intended to be backported to 2.2.x and 1.4.x we should
minimize the diff. The previous version of this PR changed the behavior
of the pass to normalize on using standard gates even if there were
custom names for gates in the target. Longer term I think this behavior
is better for the pass, but there is discussions around exactly the
semantics of the Target's data model around names vs operations here and
also that this might change the output pretty noticeably in some cases.
For a bugfix intended for backport it's better to be conservative here,
so this commit reverts the logic to just use the name in the target and
only filter operations if the target doesn't actually support arbitrary
angles on them. We can revisit the improvements in a follow up PR.

---------

Co-authored-by: Jake Lishman <jake@binhbar.com>

15 of 15 new or added lines in 1 file covered. (100.0%)

11 existing lines in 5 files now uncovered.

93142 of 105559 relevant lines covered (88.24%)

1160733.51 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.19
0.29% crates/circuit/src/parameter/symbol_expr.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
1
92.4
-0.1% crates/transpiler/src/passes/unitary_synthesis.rs
2
92.54
0.51% crates/qasm2/src/lex.rs
6
97.09
0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 18349671697.1 08 Oct 2025 04:04PM UTC 871
88.24
GitHub Action Run
Source Files on build 18349671697
  • Tree
  • List 871
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18349671697
  • 83b762d3 on github
  • Prev Build on gh-readonly-queue/main/pr-15096-8d7b2f0acb6a10d35655ce82d1f746078a5dbeeb (#18329443931)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc