-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace qiskit
metapackage with qiskit-terra
#11271
Merged
Merged
Changes from 3 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2feb8f9
Replace `qiskit` metapackage with `qiskit-terra`
jakelishman 2e986d7
Add manual uninstall for Neko
jakelishman 560c47a
Merge remote-tracking branch 'ibm/main' into terra-nullius
jakelishman d8b7ebf
Fix Windows paths
jakelishman 6f5b066
Refer to stdlib documentation for odd shells
jakelishman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
critical: | ||
- | | ||
You cannot upgrade in place to Qiskit 1.0. You must begin a new virtual environment. | ||
|
||
From Qiskit 1.0, Qiskit is comprised of exactly one Python package: ``qiskit``. Previously, | ||
as a legacy of the "component elements" of early Qiskit, the ``qiskit`` package was a | ||
dependency-only "metapackage", and the core code of Qiskit was in a package called ``qiskit-terra``. | ||
As Qiskit grew, the other elements split off into their own packages (such as ``qiskit-aer``) | ||
until only the core was left in the metapackage. For Qiskit 1.0, we are removing the metapackage | ||
entirely, and replacing it with the actual Qiskit code. | ||
|
||
This means that you cannot upgrade an existing installation to Qiskit 1.0. Instead, you must | ||
create a new Python virtual environment. Using the built-in ``venv`` module, you can do (Linux | ||
and Mac): | ||
|
||
.. code-block:: bash | ||
|
||
# Create the new environment (only once). | ||
python -m venv ~/qiskit-1.0-venv | ||
# Activate the environment (every session). | ||
source ~/qiskit-1.0-venv/bin/activate | ||
# Install Qiskit (only once). | ||
pip install 'qiskit>=1.0' | ||
|
||
On Windows, replace ``source <venv>/bin/activate`` with ``source <venv>/Scripts/activate``. | ||
|
||
If you are a library author, or have code that depends on Qiskit, you should update any old | ||
dependencies on ``qiskit-terra`` to instead depend on ``qiskit``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although I guess it really depends on which windows shell you're using it'd be
<venv>\Scripts\activate.bat
if you're using cmd.exe orPS <venv>\Scripts\Activate.ps1
if you're using powershell. This would work if you're using bash on windows I guess though.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true, I forgot people used things other than bash-likes. Shall we do something more here? I'm not sure what to write without going too overboard - I don't really know how most Windows users interact with
venv
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I'm debugging something on windows personally I either do it via git bash (so what you had would work) or via cmd.exe and call the
activate.bat
file. It often depends on what I'm debugging as either shell might be needed to reproduce an issue if it involves output or default character encoding.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it might be better to refer to the stdlib python docs here https://docs.python.org/3/library/venv.html#how-venvs-work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good idea - done in 6f5b066.