Skip to content

Commit 05c1388

Browse files
authored
Update quantum_number_generation.py
Added description what this code does.
1 parent de9de40 commit 05c1388

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/pythonLib/quantum_number_generation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from cqc.pythonLib import CQCConnection, qubit
22

33
#####################################################################################################
4+
#In this example, we produce fresh coin/random number with using quantum logical gates. While creating quantum random generator, steps of coin analogy was used.For this 1) a new qubit was produced and this stpe similar to fishing coin 2) applied hadamard gate, this step can be equal that tossing a coin in air 3)Finally measured qubit and this is like that we can learn now the coin's result like head or tail
45

56

67
def main():

0 commit comments

Comments
 (0)