Trying to understand quantum computers through “quantum mechanics” is a roundabout way. Their essence is simply a computer that multiplies a “matrix” against an “ultra-high-dimensional complex vector” and finally performs “sampling.”
If you handle neural networks (NN), you can actually understand this structure with little sense of incongruity.
1. States are “2D arrays (vectors)”
A single bit (qubit) is nothing more than a vector containing two complex numbers as elements.
Here, there is only one constraint: $|a|^2 + |b|^2 = 1$ (normalization condition).
The expression “0 and 1 exist simultaneously” can simply be rephrased as “both the component at index 0 and the component at index 1 are present in the vector.”
2. Operations are “matrix multiplication”
Writing a program is the work of multiplying a unitary matrix (a matrix that does not change the length of the vector) $M$ against this vector $v$ to obtain a new vector $v'$.
Operations such as flipping bits or creating “superposition” are all just processes of sequentially multiplying specific matrices from the left.
3. Execution is “vector sampling”
We cannot directly view the final vector $v_{final}$ after the calculation ends. This is where it somewhat resembles NNs.
What ultimately takes place is a sampling (observation) task of “taking out one index based on the square of the absolute value of each component of the vector as a probability.”
In other words, quantum computing is a “game of adjusting vector weights by combining matrix calculations so that the probability of selecting the desired answer’s index becomes high.”
4. Is it really fast? (A sober perspective)
Explanations stating that “quantum computers are fast because they perform parallel computation” are now considered quite dubious or inaccurate.
The Trap of Exponential Memory Space
Indeed, if you have $n$ bits, you can handle a $2^n$ dimensional vector. With $30$ bits, it is $1$ billion dimensions. It may seem impressive that this update of $1$ billion elements can be done in bulk with a single matrix operation, but there are the following problems.
- Input Wall: Merely setting initial data of 1 billion dimensions into a vector takes classical time.
- Output Wall: Even if the calculation result is obtained as a 1 billion dimensional vector, sampling allows you to extract only “one index.” To know the full picture, you need to run it many times.
- Algorithm Limitation: Algorithms that manipulate matrix calculations to “amplify only the desired answers” (such as Shor’s and Grover’s) are extremely limited.
Conclusion at Present
There are very few problems for which it has been mathematically proven that quantum computers can overwhelm classical computers.
For many practical problems (such as machine learning and optimization), whether it truly becomes faster than classical computers when including the number of matrix operations and sampling counts is still in the research phase, and no conclusion has been reached yet.
It is not a simple matter of “being fast because the dimensions are huge”; rather, the current situation is an extremely limited contest regarding “how many problems have special structures that can leverage those huge dimensions.”