Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iyassou authored Nov 20, 2019
1 parent 38f1c95 commit fb5fab8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb5fab8

Please sign in to comment.