i was looking at shor's algorithm and had a bright idea, square the numbers rather than multiply by a specific base.
this idea however doesn't seem to work.
for example, the followng code:
if p == 0:
per = 1...