Quantum Computing, Quantum Computer, Simulator, From Scratch.
qiskit and others like Q# uses little endian systems - least significant bit is on the right. Although in the circuit diagram we see the least bit at the top, it is intepreted to be on the right! It is confusing but after a bit of back and forth, it becomes normal (well hopefully). So our code is