Blueqat quantum computing SDK on lightsail

Yuichiro Minato
Nov 4 · 2 min read

First

These days we hear about quantum computing everyday. Somebody want to do quantum computing but it is somehow difficult to get actual hardware.

Now we provide way to install a simple SDK with simulator for quantum computing.

AWS

AWS is a cloud service provides amazon and we can select an instance to get a server. We will deploy a blueqat quantum computing SDK in it.

Blueqat

Blueqat is a quantum computing SDK for free.

https://github.com/Blueqat/Blueqat

lightsail

We can prepare an instance server with clicking on amazon lightsail. We can do server setups with no knowledge about it.

Just login and click on “lightsail”

What we have to do is just click lightsail and create instance. As an OS we choose amazon linux and it cost 3.5 dollars/month.

Now we have the instance.

Connection

Let’s start installing inside server side. We click the button to get the console.

>_

Now we have ssh connection to the server through the browser.

sudo yum update

Just updating the server and let’s start.

Now we check the version of the python pre-installed.

python -V

We get Python 2.7.16. and we need python3

sudo yum -y install python36-devel python36-libs python36-setuptoolssudo python3 -m ensurepip --upgradesudo python3 -m pip install --upgrade pip

Now we have

Successfully installed pip-19.3.1

Let’s install blueqat

Just do that command and we have blueqat with numpy and scipy.

pip install --user blueqat

Test

We just try to do a test

vi test.py

We write some code on blueqat

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

And run

python3 test.py

We have,

Counter({'0': 54, '1': 46})

This is a superposition of 0 and 1.

Now we have server side

Now we have blueqat with amazon linux. If you want to have a service through aws you can easily do your own service using this serverside one.

MDR Inc.

quantum computing company in Tokyo

Yuichiro Minato

Written by

MDR, Quantum Computing@Tokyo, https://mdrft.com/

MDR Inc.

MDR Inc.

quantum computing company in Tokyo

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade