LoginSignup
8
8

More than 5 years have passed since last update.

blueqatハンズオン準備

Last updated at Posted at 2019-03-08

blueqatのインストール

ローカルのpythonを利用する場合

blueqatのインストール

$ pip install blueqat

pythonの起動

$ python

ローカルもしくはGoogle Colaboratoryのjupyter notebookを利用する場合

! pip install blueqat

ハンズオン

以下の2つのハンズオンをやりますので、コードが動くかどうか、確認しておいて下さい。

重ね合わせ回路

from blueqat import Circuit
Circuit().h[0].m[:].run(shots=100)

量子もつれ回路

from blueqat import Circuit

Circuit().h[0].cx[0,1].m[:].run(shots=100)

備考

pythonのインストール手順

pythonは3.6以上をインストールしておいて下さい。
pythonのインストール手順は以下のサイトにあります(3.7.2が最新)。

ご利用のプラットフォームに応じた手順を実行下さい。

jupyter notebookのインストール手順

jupyter notebookをインストールする手順は以下にあります。
https://jupyter.org/install

Google Colaboratory

Googleアカウントでログインした状態で以下のURLにアクセスするとjupyter notebookが利用できます。

8
8
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
8
8