r/compsci • • 1d ago

How applicable is classical computer science theory to quantum computers? If it is, then to what extent?

I'm looking to get a better understanding of quantum computing, and wanted to try and tie some of what I know from regular computer science to it. From what I know, since quantum computers are non deterministic, classical comp sci theory shouldn't work on quantum computers. I think this would break things like compilers which rely on being deterministic to work. But what other areas do work on these new computers, and what kinds of modifications to classical theories have been made such that they do hold for quantum computers?

2 Upvotes

5 comments sorted by

6

u/golfstreamer 1d ago

You need to make a distinction between "computability theory" and "complexity theory". Computability theory asks what questions can and cannot be computed (given potentially infinite time) where as complexity theory is about how fast you can solve a problem. The really important distinctions between quantum and classical computing come in complexity theory since quantum computers can do things much faster.

Non-determinism is a concept that exists in classical computing as well. For quantum computing non-determinism is an inherent physical property whereas for classical computers non-determinism can arise because we can't practically predict or control the behavior of the program. For example, programs running on parallel machines can be considered non-deterministic due to the occurrence of things such as race conditions. Non determinism doesn't prevent you from writing things like compilers. It's just a factor you have to take into account when analyzing your program.

1

u/Beaconing 23h ago

Thank you for the helpful information, I appreciate it! So the only difference is essentially just the speed in theory. Maybe I was overthinking things a bit… (get it? Bit?)

I guess I also need to brush up on my basic comp sci knowledge too. I’m taking a theory of computation class at my school next semester so hopefully I’ll have a more in depth understanding of the second part soon.

2

u/Chroniaro 22h ago

Compilers for quantum computers are actually a super interesting and fairly young area of research. If you want to see the basic steps involved, a starting point is:
https://quantum.cloud.ibm.com/docs/en/api/qiskit/transpiler

For a general introduction to quantum computing, I recommend:
https://quantum.cloud.ibm.com/learning/en/courses

1

u/Beaconing 14m ago

Thank you very much for the recommendations! I think I'll have time during the winter to start with the IBM courses.

0

u/2hands10fingers 1d ago

Classical computers can simulate quantum algorithms up to a point. That point being a factor of two things, time and environmental interference. For example, If you asked to a classical computer to simulate a quantum algorithm with 100 qbits, it takes an impossibly long time as that would represent 2^100 potential states to be processed. Not only that, the simulation behaves in a way that is more deterministic than incorporating the noise of a real quantum computer would realistically have, and thus you would need to optimize your algo using error correction methods. Quantum streamlines the process, but it’s messy.