Quantum Computing, Science, Programming.
this we simply use frac = 1/(ship+1). Once the bombing is over, it’s time to see what happened. For that we need to add the measurement commands. Each qubit in the register is measured, and the results copied to a corresponding normal bit. This is done with for qubit in range(5):