LoginSignup
2
1

More than 1 year has passed since last update.

qiskitのインストール

Last updated at Posted at 2022-06-29

qiskitというのはIBMが作った量子計算パッケージです。IBM-Quantumと連動して実際の量子コンピューターでコードを実行することもできます。

仮想環境構築

まず、仮想環境を用意します。というのもpipとcondaを両方使う必要があるからです。環境の名前はqiskitとしました。ターミナルから操作します。

conda create -n qiskit
conda activate qiskit

インストール

qiskit環境に入ったら以下のパッケージをインストールします。

pip install qiskit
pip install qiskit[all]

最適化ツールの"qiskit-aqua"というパッケージがありましたが、いつの間にか廃止になってしまったようです。一応、次のコマンドでインストールできましたが、まともに動きませんでした。

pip install qiskit-aqua[all]==0.7.1

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1