Quantum Computing, Quantum Computer, Simulator, From Scratch.
the inputs. We can only say, if the result is 1, then both inputs are 1. But if the result is 0, we don’t know if the inputs are (1, 0), (0, 1), or (0, 0). But for a quantum gate, the input can be reconstructed by looking at the output alone. Since quantum gates are just matrices, we can easily