zlacker

[return to "Ask HN: What scientific phenomenon do you wish someone would explain better?"]
1. arkanc+ps[view] [source] 2020-04-26 22:55:07
>>qqqqqu+(OP)
Quantum Computers. Not like I'm five, but like I'm a software engineer who has a pretty decent understanding of how a classical turing machine works. I can't tell you how many times I've heard someone say "qubits are like bits except they don't have to be just 1 or 0" without providing any coherent explanation of how that's useful. I've also heard that they can try every possible solution to a problem. What I don't understand is how a programmer is supposed to determine the correct solution when their computer is out in some crazy multiverse. I guess what I want is some pseudo code for quantum software.
◧◩
2. dirkt+IW[view] [source] 2020-04-27 04:36:53
>>arkanc+ps
Very simplified explanation:

If you understand Turing Machines, you probably also understand other automata. So you probably understand nondeterministic automata [1].

A quantum computer is like a very restricted nondeterministic automaton, except that the "do several things a once" is implemented in physics. That means just like a NFA can be exponential faster than a DFA, a QC can be exponential faster than a normal computer. But the restriction on QCs makes that a lot harder to do, and so far it only works for some algorithms.

As to why quantum physics allows some kind of nondeterminism: If you look at particles as waves, instead of a single location you get a probability function that tells you "where the particle is". So a particule can be "in several places at once". In the same way a qbit can have "several states at once".

> What I don't understand is how a programmer is supposed to determine the correct solution when their computer is out in some crazy multiverse.

Because one way to explain quantum physics is to say that the waveform can "collapse" [2] and produce a single result, as least as far as the observers are concerned. There are other interpretations of this effect, and this effect is what makes quantum physics counterintuitive and hard to understand.

[1] https://en.wikipedia.org/wiki/Nondeterministic_finite_automa...

[2] https://en.wikipedia.org/wiki/Wave_function_collapse

◧◩◪
3. eloran+SZ[view] [source] 2020-04-27 05:24:53
>>dirkt+IW
The thing I don't understand about qc is how on earth can you read values from qbits without breaking superposition.
◧◩◪◨
4. cyphar+921[view] [source] 2020-04-27 05:58:08
>>eloran+SZ
You can't, it's a fundamental aspect of quantum mechanics (measuring any entangled system collapses it because you've forced the system into a state by measuring it).

The idea is that you structure the QC system such that the computation is done using entangled states, but when it comes to measuring the qubits (to get the result of the computation) the state is such that you'll get meaningful results. This means the quantum state at the end of the calculation would ideally be along whatever axes you're measuring, so you get the same answer 100% of the time.

◧◩◪◨⬒
5. eloran+V41[view] [source] 2020-04-27 06:34:01
>>cyphar+921
OK but this implies that you'll have to know beforehand what a result will look like. Which kind of beats the purpose of a general purpose computational device.
[go to top]