python:qiskit:インストール
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
python:qiskit:インストール [2024/07/19 19:43] – [Qiskitの導入] koudai | python:qiskit:インストール [2024/10/07 03:20] (current) – [手順] koudai | ||
---|---|---|---|
Line 14: | Line 14: | ||
$ sudo apt upgrade | $ sudo apt upgrade | ||
$ sudo apt install python3-pip | $ sudo apt install python3-pip | ||
+ | </ | ||
+ | Qiskitはバージョンによって頻繁に文法が変わるので、仮想環境の中にインストールしてバージョンごとに使い分けるのがおすすめです。 | ||
+ | 仮想環境の作成にはvenvを使います。 | ||
+ | < | ||
+ | $ sudo apt install python3-venv | ||
</ | </ | ||
===== Qiskitの導入 ===== | ===== Qiskitの導入 ===== | ||
- | Qiskitはバージョンによって頻繁に文法が変わるので、仮想環境の中にインストールしてバージョンごとに使い分けるのがおすすめです。 | ||
- | |||
- | - 仮想環境の作成にはvenvを使います。< | ||
- 仮想環境を作成します(ここではホームディレクトリに qiskit-1.1-venv というディレクトリを作り、その中に仮想環境を構築します)< | - 仮想環境を作成します(ここではホームディレクトリに qiskit-1.1-venv というディレクトリを作り、その中に仮想環境を構築します)< | ||
$ python3 -m venv ~/ | $ python3 -m venv ~/ |
python/qiskit/インストール.1721385801.txt.gz · Last modified: 2024/07/19 19:43 by koudai