Skip to content

Commit de9de40

Browse files
authored
Update quantum_number_generation.py
1 parent eb623b0 commit de9de40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/pythonLib/quantum_number_generation.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#####################################################################################################
44

55

6-
def quantum_coin_generation(coin):
6+
def main():
77

88
# Initialize the connection
99
with CQCConnection("Alice") as Alice: # Here 1)we connect a node (ALice)
@@ -16,9 +16,8 @@ def quantum_coin_generation(coin):
1616

1717

1818
coin_list = [] # here we defined an empty list for saving our generated numbers/coins
19-
coin = 0
2019
for i in range(10): # for producing 10random numbers/coin used for loop
21-
coin_list.append(quantum_coin_generation(coin)) # generated coins/number added in the list
20+
coin_list.append(main()) # generated coins/number added in the list
2221
print('Quantum Coin', coin_list) # printed on the secreen
2322

2423
##################################################################################################

0 commit comments

Comments
 (0)