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

Qiskit / qiskit / 17415711163
88%

Build:
DEFAULT BRANCH: main
Ran 02 Sep 2025 09:30PM UTC
Jobs 1
Files 863
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

02 Sep 2025 08:20PM UTC coverage: 88.383% (+0.001%) from 88.382%
17415711163

push

github

web-flow
Add `QuantumCircuit.ensure_physical` (#14779)

* Add `QuantumCircuit.ensure_physical`

This is similar but stronger to `DAGCircuit::make_physical`.  Since
`QuantumCircuit` also has layout information available, this method
safely handles this, and the case that the circuit has already been made
physical.

The new documentation in the circuit module and the `QuantumCircuit`
class is intended to help, since this is a common point of confusion
among both users and developers; the documentation isn't supposed to be
a strong personal endorsement of the current situation, just an explicit
statement of what the current system _is_.

This commit was motivated by ad-hoc attempts to do this, such as in
`QuantumCircuit._from_circuit_data(add_regs=True)` (which can be updated
to use this in a follow-up).

* Remove incorrect comment

* Simplify typing of `CircuitData::make_physical`

55 of 62 new or added lines in 2 files covered. (88.71%)

9 existing lines in 2 files now uncovered.

91374 of 103384 relevant lines covered (88.38%)

480648.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.82
0.02% qiskit/circuit/quantumcircuit.py
6
91.69
-0.15% crates/circuit/src/circuit_data.rs

Uncovered Existing Lines

Lines Coverage ∆ File
4
73.02
-0.16% crates/circuit/src/parameter/symbol_expr.rs
5
91.75
-0.26% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 17415711163.1 02 Sep 2025 09:30PM UTC 863
88.38
GitHub Action Run
Source Files on build 17415711163
  • Tree
  • List 863
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17415711163
  • c74b1cb7 on github
  • Prev Build on gh-readonly-queue/main/pr-14751-a776456977f5b1c36e365586e87b545b1e9a5718 (#17406967343)
  • Next Build on main (#17427735527)
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