ubsuny / 23-Homework1G1

Homework 1 Repository Group 1
0 stars 6 forks source link

Numbers used for multiplication.. #27

Closed uarif closed 12 months ago

uarif commented 12 months ago

Hi James, what numbers did you used for multiplication in the code? Is that 4*4? Thank you.

WildJimmy commented 12 months ago

Hi Arif,

The 4's in the code refer to the number of qubits in the circuit (it's probably easier to see in the version without the conflict markers). The function as presented is just the definition, if you want to run it you'd have to call the function after defining it, such as by typing "quantum_multiplication(4,4)". This would give you 44 (or at least, 44 as well as the circuit will output)