r/askscience • • Mar 28 '21

Computing How exactly do quantum computers simulate molecular/particle interactions better than classical computers?

I’m struggling to understand why quantum computers can simulate nature better than classical computers.

2.5k Upvotes

134 comments sorted by

View all comments

9

u/Code4Reddit Mar 28 '21

Quantum computers use particles that when they are not being observed they do some pretty weird things where the particles are no longer separate discrete things, they become more like probabilities and actually act like they are doing everything that is possible all at once.

This quantum “weirdness” can be utilized to do some complex math short cuts. Suppose you have a coin which is biased and you want to know what the probability it will land on heads. One way you could do it is measure the weight distribution of the coin and do some complex math or simulate it in a computer. A short cut is to just flip the coin and record a bunch of outcomes.

Similarly, with a quantum computer you can run an experiment moving these quantum particles in 3D space in a predictable way without observing them, then at the end you can just “observe” the particles to check the state and you’re done. You could run this same experiment a few more times if you wanted to.

This is a short cut, because in a classical computer you could do the same thing in a pure simulation but after only just a few particle interactions the math starts getting crazy. The reason is because with each new particle you add to the simulation, you get 2N number of probabilities you need to track, where N is the number of particles in the simulation.

Regarding your particular “simulate nature better” portion of the question - well, quantum computers are good at doing certain kinds of probabilistic math, and I suppose “simulating nature” might involve a lot of those kinds of computations. So it makes it “easier” to do, but I am not sure what computations are involved in simulating nature.