You would find prime factors.
What else would you expect to happen?
What else would you expect to happen?
I know it's not too hard to write gates for testing with QCViewer [https://github.com/aparent/QCViewer], (Linux only for the moment, I'm just going to be improving and possibly porting it to OSX)
If you know nothing about QM, imagine the classical analogue: a classical CPU simulator with exactly one (say) 32-bit register, which, instead of being represented as 32 bits, is represented as 2^32 bits, exactly one of which is set to 1; the only way to determine which bit this is is to scan the entire array.