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

Qiskit / qiskit / 11613320094
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: pbc_transformation
DEFAULT BRANCH: main
Ran 31 Oct 2024 02:21PM UTC
Jobs 1
Files 896
Run time 2min
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

31 Oct 2024 01:58PM UTC coverage: 88.753% (+0.02%) from 88.729%
11613320094

push

github

web-flow
Deprecate the condition attribute and related functionality (#13223)

* Deprecate the condition attribute and related functionality

This commit deprecates the Instruction.condition and c_if() method for
removal in 2.0. This functionality has been superseded by the more
sophisiticated `IfElseOp` for some time now. Removing the condition
property will simplify the Qiskit data model as it is implemented in
a kind of ad-hoc manner that adds additional overhead to manually check
it in many places.

For the unittest modifications the deprecation warning for the .condtion
getter is suppressed for the entire suite because this gets triggered
internally by the transpiler and a lot of other places, including from
rust code as until it is removed we need to use it to check that piece
of the data model.

Fixes #9556

* Add missing assertWarns

* Handle deprecation warnings in visual tests too

* Apply suggestions from code review

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Use private attribute in py->rust conversion

* Avoid deprecation warning in non-deprecated code

This commit fixes some places in the code where we were using the
deprecated functionality where it needed a path to persist the behavior
or where the deprecation warning became a performance bottleneck. The
code is updated accordingly and to catch issues like this in the future
the warning filters are adjusted to be more selective.

* Add missing test updates

* Add filter for aer's condition usage and dag drawer

* Fix lint

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

81 of 83 new or added lines in 29 files covered. (97.59%)

6 existing lines in 2 files now uncovered.

75997 of 85628 relevant lines covered (88.75%)

363559.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 11613320094.1 31 Oct 2024 02:21PM UTC 0
88.75
GitHub Action Run
Source Files on build 11613320094
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11613320094
  • c6efb76c on github
  • Prev Build on gh-readonly-queue/main/pr-11557-4bd2dd8df362621ced1665a7357de89f6b18a854 (#11612784879)
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