@yuichirominato 2018.11.24更新 49views

Starting a Quantum Computer Application on Google Colab

Blueqat 量子ゲート 量子コンピュータ

Introduction

Who want to start developing a quantum computing application, the most troublesome thing is to create an environment on your computer. The easiest way to start the application is to work on Google Colaboratory maybe.

What is Google Colaboratory?

This is an interactive console like browser-based python jupyter provided by Google, which is useful for tutorials, etc. You can run python mixing texts and codes.

Just access to the url
https://colab.research.google.com/

You can use it as soon as you login with your Google Account.

Quick start

Choose a new Python 3 notebook from the menu file and you can start easy.
First of all let’s install Blueqat development kit from your Google Colaboratory


!pip install blueqat

Please mark ! and enter “pip install blueqat”. If it has already been installed, that fact is displayed, and if it is not installed, the installation will start and it will end soon.

Write a code

All we have to do is write the code. If you hover the mouse cursor between lines, you will get + code or + text.
The text can be used for memo writing and the code can actually be executed.

If Blueqat installed, try entering the following.

from blueqat import Circuit
Circuit().h[0].cx[0,1].run()

Then, it is executed,

array([0.70710678+0.j, 0.        +0.j, 0.        +0.j, 0.70710678+0.j])

Quantum entangled state of | 00> and | 11> is made. After that you can implement various programs by doing what you want to try.

Recommend

SERVICE

汎用量子コンピュータ向けアプリケーション開発SDK

詳しく見る Githubで入手する(無料)

汎用量子コンピュータ向け高速シミュレータ

詳しく見る

量子コンピュータ向けクラウドサービス(準備中)

詳しく見る

イジングマシン向けアプリケーション開発SDK

詳しく見る Githubで入手する(無料)

COMMUNITY

量子コンピュータのことを学びたい、仕事としたいなどの情報交換の場を設け、コミュニティの形成を進めています。オフラインの勉強会と、オンラインのチャットコミュニティの2種類あります。オフラインのConnpassは1400名、オンラインのSlackは880名を超える参加があります。どちらも無料ですのでお気軽にご参加ください。

CONNPASS SLACK

CONTACT

弊社あての連絡はinfo@mdrft.comより用件を明記の上、メールで連絡を頂けますと幸いです。

Back To Top

Recent Posts