From fb5fab8b4019dcb7eb1a3b55395812de9c3fd543 Mon Sep 17 00:00:00 2001 From: Iyassou Shimels <36436370+iyassou@users.noreply.github.com> Date: Wed, 20 Nov 2019 23:01:15 +0000 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 948c868..239bde0 100644 --- a/README.md +++ b/README.md @@ -501,6 +501,10 @@ class AcidRain: return randGen(), __STARTING_Y ``` +`qc = QuantumCircuit(1,1)` intialises a quantum circuit with 1 qubit and 1 output bit. `qc.h(0)` adds a Hadamard gate to the single qubit at position 0. The Hadamard gate is what let's us use the value of the qubit to represent a fair coin toss by giving either state (0 or 1) an equal probability. `qc.measure(0,0)` reads out qubit 0 into output bit 0. + +The `simulate` function simulates our experiment (currently applying a Hadamard gate and reading the output state): `shots` dictates the amount of times to simulate the experiment, `get` decides the format in which we want the result of the experiment. + #### Quantum tunnelling ##### Initial implementation