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

Qiskit / qiskit / 7732071048 / 1
87%
main: 88%

Build:
Build:
LAST BUILD BRANCH: simplify-reno-template
DEFAULT BRANCH: main
Ran 31 Jan 2024 08:56PM UTC
Files 1265
Run time 35s
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.951% (-0.01%) from 86.964%
7732071048.1

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>

74268 of 85414 relevant lines covered (86.95%)

92151.66 hits per line

Source Files on job 7732071048.1
  • Tree
  • List 1265
  • Changed 23
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7732071048
  • 94ea49db on github
  • Prev Job for on gh-readonly-queue/stable/0.45/pr-11617-6730bdf17f7e5ebea0e6883da598b0808ba86e1c (#7721812773.1)
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