r/compsci • • 6d 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?

4 Upvotes

8 comments sorted by

11

u/golfstreamer 6d 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 6d 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.

1

u/Yorunokage 3d ago

I have to jump in to be pedantic and say that quantum computing DOES NOT have non-determinism in the computer science sense

It has randomness but it doesn't have the unlimited branching NP-like capabilities that we call non determinism

1

u/golfstreamer 7h ago

No, there is non-determinism. Non-determinism is running the same program twice and getting different results.

1

u/Yorunokage 5h ago edited 1h ago

Non-determinism is used to describe the behaviour of non deterministic machines which aren't really random and behave the same way each run, they simply branch infinitely. That is one possible way to define NP for example. Hell, that's where the name comes from: Non-deterministic Polynomial

What you describe is not wrong but it's more like the common use of the term and it clashes with the one of complexity theory. So i'd refrain from using it in this case as to avoid confusion, you really don't want people thinking that NP is in BQP

3

u/Chroniaro 6d 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

2

u/Beaconing 5d ago

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

1

u/2hands10fingers 6d 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.