The Online Quantum Computer That You Can Use! by procrastilearner

View this thread on steempeak.com
· @procrastilearner · (edited)
$4.42
The Online Quantum Computer That You Can Use!
<div class="pull-left">https://steemitimages.com/DQmd6MgQoWc9bRQdP7TZxa3h9wG2YvMDUm7vr7SjfKvoWqm/image.png</div>

This one is cool. IBM has made some of their [quantum computers](https://en.wikipedia.org/wiki/Quantum_computing) available to the general public via the [IBM Quantum Experience](https://quantumexperience.ng.bluemix.net/qx/experience) website. 

I came across this resource only in the last few days. I had no idea that such an amazing resource was made available on the web to the general public. This post describes the website and presents a few simple quantum programs.

Sign up is easy and it only takes a few minutes. Once logged in you can start playing with one of their 5 qubit quantum computers.

The website provides user guides for the [newbie](https://quantumexperience.ng.bluemix.net/qx/tutorial?sectionId=beginners-guide&page=introduction) as well as the [advanced user](https://www.qiskit.org/ibmqx-user-guides/full-user-guide/introduction.html).

The main part of the interface is the Composer Page in which you get to program in 'gates' that actually manipulate the quantum bits ([qubits](https://en.wikipedia.org/wiki/Qubit)) and then read them to give you the macro-world outputs of classical 0's and 1's.

To prevent spamming of this limited computer resource, users are given computing credits. Each run of a program uses up credits. When they go to zero you are done but don't worry because IBM will top up your account on a daily basis (I believe).

Also, if you want to test out your programs without using up your credits you can simply push the Simulate button instead of the Run button. You get an unlimited number of simulations and so can test and explore your quantum programs to your heart's content.

For this post I am only going to be using the Simulate button to test the programs and generate the results. I don't want to waste my precious few credits until I feel that am ready to test a proper quantum program.

#### Test 1 - Let's Just Measure The Qubits
The computer gives you 5 qubits which are all initialized into the |0> state. Here is my first test to see if that is true. I am just going to set up five measurement gates to read the outputs:

The Program:
![](https://steemitimages.com/DQmQbNVd1S5qjcuYgHDrR797tDwBLjVgYaviFGuhapeqxwE/image.png)
The Results:
![](https://steemitimages.com/DQmT93TsTYPe66NHnySyQ9B6d76GF9rQRf97X9uKo887jno/image.png)

The little pink icon of a gauge in the program composer diagram means that the qubit is being measured. These gates are always needed in any program to read the outputs of your quantum calculation.

When the test is run the results come out with every bit set to |0> which is as expected. Boring yes, but we need to go step by step.

#### Test 2 - Flipping The Qubits
Let's see if we can simply flip these qubits from |0> to |1> using the 'not' operator which is given by the green 'X' symbol.

The Program:
![](https://steemitimages.com/DQmcfSUiRkEspfemU5Q9BvtXeJLWTuNx1qnci7BrYgiouja/image.png)
The Results:
![](https://steemitimages.com/DQmYXgue2AEAZNLZCbUvJSPijqa8Qi6qeitq1gzULy4Aqbf/image.png)

When the test is run the results come out with 100% of the bits flipped from |0> set to |1> which again is as expected. 

So far so good. Now on to superposition.

#### Test 3 - Putting The Qubits Into Superposition

The first two programs used qubits but did not use any superposition which is one of the hallmarks of quantum mechanics. Let's set this up.

Superposition is created using the Hadamard gate. It rotates the vector of the qubit from the initial |0> state to something that is a superposition of both the |0> and the |1> states <b>at the same time</b>.

The quantum computer, if it is good, should make it equally likely to get a |0> or a |1> when the measurement is finally made.

The Program:
For this one I am only going to do 4 qubits so that the results of the output can be seen on one screen.
![](https://steemitimages.com/DQmTi56PNq3PRKTYXqBNEDt66nbEYDatSt81vzCaam9dnhT/image.png)
The Results:
![](https://steemitimages.com/DQmeqsJuxDZLr3GiN4yD6kpPWeKzWb3zWqbQwp4rmxuDSfE/image.png)

Since I am using four qubits in this test, there will be 2<sup>4</sup> = 16 states as the possible measured outcomes. Each of the sixteen outcomes is equally likely. Since 1/16 = 0.0625 the results should all be more or less close to this value. The outcome chart shows that this is basically true.

The simulations only perform 100 test shots so there will always be statistical variation around the expected results.

#### Test 4 - Qubit Entanglement

The next hallmark of quantum mechanics and quantum computers is that you can entangle the qubits. Entanglement is critical for quantum computing because if it is done properly you can model systems that would be very hard, if not impossible, to model using classical computers (i.e. breaking codes, traveling salesman problems *etc*.).

For this test I am just going to program in one of the Bell Theorem examples given in the advanced section of the [IBM Q-Experience website](https://www.qiskit.org/ibmqx-user-guides/full-user-guide/003-Multiple_Qubits_Gates_and_Entangled_States/050-Entanglement_and_Bell_Tests.html).

The Program:
![](https://steemitimages.com/DQmRocfUU3Zqa81CPTjydPiXTQiUpDBro36N2rnUZciCj8B/image.png)
The Results:
![](https://steemitimages.com/DQmXBpp3S4t8gQGGtertZbWEKo22pAAvMYBB4PcQzdMZDfW/image.png)

Bell's Theorem is very deep and it would take at least an entire post (probably several posts) to explain it properly. In brief, Bell's Theorem proves that entangled quantum states will yield outcomes with probabilities that cannot ever be replicated using the interaction of classical mechanics.

Per the IBM web page:
> "Bell showed that if these measurements are chosen correctly for a given entangled state, the statistics can not be explained by any local hidden variable theory, and that there must be correlations that are beyond classical."

#### Closing Words
As I said at the start of this post, I came across this resource only in the last few days. I think this is an amazing find and if you are oriented towards the STEM fields then I encourage you to sign up and start playing around with it as it is an incredible opportunity for education and if you have the skills, maybe even research.

*All images that do not have explicit credits are screenshots that were taken during my live setups and executions of the quantum programs. This is a fair use activity and falls within Steemit publishing guidelines.*

<center>![](https://steemitimages.com/DQmcb6Ae7N5q8gudPbNrprwcJWPooGHhZRuAmQdsiva2HVv/image.png)
<sub>I, Procrastilearner, donate the above image to the Public Domain.</sub></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 7 others
properties (23)
post_id38,062,682
authorprocrastilearner
permlinkthe-online-quantum-computer-that-you-can-use
categorysteemstem
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["https://en.wikipedia.org/wiki/Quantum_computing", "https://quantumexperience.ng.bluemix.net/qx/experience", "https://quantumexperience.ng.bluemix.net/qx/tutorial?sectionId=beginners-guide&page=introduction", "https://www.qiskit.org/ibmqx-user-guides/full-user-guide/introduction.html", "https://en.wikipedia.org/wiki/Qubit", "https://www.qiskit.org/ibmqx-user-guides/full-user-guide/003-Multiple_Qubits_Gates_and_Entangled_States/050-Entanglement_and_Bell_Tests.html"], "image": ["https://steemitimages.com/DQmd6MgQoWc9bRQdP7TZxa3h9wG2YvMDUm7vr7SjfKvoWqm/image.png"], "tags": ["steemstem", "science", "technology", "steemeducation", "education"]}"
created2018-03-12 00:45:42
last_update2018-03-12 01:31:30
depth0
children4
net_rshares1,360,123,517,723
last_payout2018-03-19 00:45:42
cashout_time1969-12-31 23:59:59
total_payout_value3.492 SBD
curator_payout_value0.927 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length6,701
author_reputation10,660,504,989,847
root_title"The Online Quantum Computer That You Can Use!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (71)
@anasuleidy ·
I am very happy that every day technology offers us opportunities to learn, this is demonstrated with this quantum computer online. enjoy it!
👍  
properties (23)
post_id38,076,553
authoranasuleidy
permlinkre-procrastilearner-the-online-quantum-computer-that-you-can-use-20180312t024421275z
categorysteemstem
json_metadata"{"app": "steemit/0.1", "tags": ["steemstem"]}"
created2018-03-12 02:44:24
last_update2018-03-12 02:44:24
depth1
children0
net_rshares4,830,547,376
last_payout2018-03-19 02:44:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length141
author_reputation873,194,740,389,779
root_title"The Online Quantum Computer That You Can Use!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@norvicgarcia ·
Excellent post friend, good news!
👍  
properties (23)
post_id38,076,816
authornorvicgarcia
permlinkre-procrastilearner-the-online-quantum-computer-that-you-can-use-20180312t024625116z
categorysteemstem
json_metadata"{"app": "steemit/0.1", "tags": ["steemstem"]}"
created2018-03-12 02:46:30
last_update2018-03-12 02:46:30
depth1
children0
net_rshares4,830,547,376
last_payout2018-03-19 02:46:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length33
author_reputation92,849,116,967
root_title"The Online Quantum Computer That You Can Use!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@teresah ·
the technology advances and with it the physical, good things are to come
👍  
properties (23)
post_id38,077,023
authorteresah
permlinkre-procrastilearner-the-online-quantum-computer-that-you-can-use-20180312t024821691z
categorysteemstem
json_metadata"{"app": "steemit/0.1", "tags": ["steemstem"]}"
created2018-03-12 02:48:27
last_update2018-03-12 02:48:27
depth1
children0
net_rshares4,830,547,376
last_payout2018-03-19 02:48:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length73
author_reputation9,648,158,833,183
root_title"The Online Quantum Computer That You Can Use!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steemstem-bot ·
$0.45
<center><a href="www.steemit.com/@steemstem"><img src="https://media.discordapp.net/attachments/384404201544876032/405507994583957505/steemSTEM.png"></a><br><table><tr><th> </th><th> </th><th><a href="https://steemit.com/steemstem/@steemstem/helpful-guidelines-for-crafting-steemstem-content">Guidelines</a></th><th><a href="https://steemit.com/steemstem/@steemstem/steemstem-winter-2017-2018-project-update">Project Update</a></th><th> </th><th> </th></tr></table><br><a href="https://steemit.com/steemstem/@steemstem/being-a-member-of-the-steemstem-community"><b>Being A SteemStem Member</b></a></center>
👍  ,
properties (23)
post_id38,219,010
authorsteemstem-bot
permlinkre-the-online-quantum-computer-that-you-can-use-20180312t204203
categorysteemstem
json_metadata{}
created2018-03-12 20:42:03
last_update2018-03-12 20:42:03
depth1
children0
net_rshares146,967,640,089
last_payout2018-03-19 20:42:03
cashout_time1969-12-31 23:59:59
total_payout_value0.446 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length606
author_reputation3,811,633,288,089
root_title"The Online Quantum Computer That You Can Use!"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)