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

Qiskit / qiskit / 26520813064
88%

Build:
DEFAULT BRANCH: main
Ran 27 May 2026 03:58PM UTC
Jobs 1
Files 944
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

27 May 2026 02:48PM UTC coverage: 87.61% (-0.002%) from 87.612%
26520813064

push

github

web-flow
Use public `qiskit.circuit` APIs in `qiskit.synthesis` (#16253)

* Use public `qiskit.circuit` APIs in `qiskit.synthesis`

We have a long-standing problem of `qiskit.circuit` reversing the module
hierarchy and including import-time imports of `qiskit.synthesis`.  The
synthesis module is supposed to be higher level than `circuit`, and only
used to provide the "default" (`Instruction.definition`) syntheses of
various library objects.  Those imports should be done at runtime of the
`_define` methods.

This ensures that `qiskit.synthesis` is only using `qiskit.circuit` via
its public interface, which is how the module API-boundary separation is
supposed to work.  This is a little more code churn than is ideal, but
my hope is that this is a good stepping stone along the way to properly
fixing the import structure of Qiskit, and that now `synthesis`'s
imports look right everywhere, any new files will copy the correct
style.

I've done the same for `qiskit.quantum_info` where possible, but there's
a couple of places that are using items that _aren't_ publicly exported
(`operators.predicates` is a big one, and might be an oversight in the
`qiskit.quantum_info` module).

* Remove unused import

96 of 98 new or added lines in 35 files covered. (97.96%)

11 existing lines in 4 files now uncovered.

108599 of 123957 relevant lines covered (87.61%)

961990.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.06
qiskit/synthesis/multi_controlled/gray_code.py
1
89.76
0.53% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py

Coverage Regressions

Lines Coverage ∆ File
5
73.97
-0.12% crates/circuit/src/parameter/symbol_expr.rs
4
92.03
0.0% crates/qasm2/src/lex.rs
1
91.04
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
21.72
0.72% qiskit/synthesis/unitary/qsd.py
Jobs
ID Job ID Ran Files Coverage
1 26520813064.1 27 May 2026 03:58PM UTC 944
87.61
GitHub Action Run
Source Files on build 26520813064
  • Tree
  • List 944
  • Changed 38
  • Source Changed 35
  • Coverage Changed 30
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26520813064
  • f0fae6f3 on github
  • Prev Build on gh-readonly-queue/main/pr-16254-973c31b83a6e1556bdf80fb684f941b50cedffd0 (#26508690579)
  • Next Build on main (#26522538851)
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

© 2026 Coveralls, Inc