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

Qiskit / qiskit / 7732722741
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 31 Jan 2024 10:00PM UTC
Jobs 1
Files 1265
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 Jan 2024 08:34PM UTC coverage: 86.952% (-0.01%) from 86.964%
7732722741

push

github

web-flow
Poison import if Qiskit 1.0+ is detected (#11617)

* Poison import if Qiskit 1.0+ is detected

This uses `importlib.metadata` to search for installations of Qiskit 1.0
at runtime, and poison the import if one is detected.  The two packages
are incompatible in a way that we cannot express to `pip` without having
poisoned the `qiskit-terra` package as a whole, which is something we're
less willing to do in order to keep it easier to install old versions
of Qiskit-dependent software, and to keep the Qiskit 1.0 packaging story
clean for the coming years.

It is not generally expected that a user specifically attempting to
install Qiskit 0.45/0.46 will accidentally install Qiskit 1.0 as well.
The intention of this poisoning in the "stable" branch is so that the
case that a user installs Qiskit 1.0, but either also includes an old
package with a dependency purely on `qiskit-terra`, or runs a subsequent
`pip install` command whose version resolution causes `qiskit-terra` to
become installed.  In both these cases, it could be the case that the
`import qiskit` command finds the `qiskit-terra` `__init__.py` file,
and so any error we also place in Qiskit 1.0 would have been skipped.

* Hide inner variable from init

* Add shortlink to migration guide

* Improve release note

* Use specific version ranges

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

74269 of 85414 relevant lines covered (86.95%)

91658.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7732722741.1 31 Jan 2024 10:00PM UTC 1265
86.95
GitHub Action Run
Source Files on build 7732722741
  • Tree
  • List 1265
  • Changed 23
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 94ea49db on github
  • Prev Build on gh-readonly-queue/stable/0.45/pr-11685-39caa8da12b324556d5d5de804ebce210f9caf9f (#7721812773)
  • Next Build on stable/0.45 (#7734325579)
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