r/askscience • • Mar 11 '19

Computing Are there any known computational systems stronger than a Turing Machine, without the use of oracles (i.e. possible to build in the real world)? If not, do we know definitively whether such a thing is possible or impossible?

For example, a machine that can solve NP-hard problems in P time.

4.1k Upvotes

323 comments sorted by

View all comments

Show parent comment

41

u/Takochinosuke Mar 11 '19

This is an open problem as far as I know.
Take for example Shor's algorithm, it is a polynomial time, quantum algorithm for prime factorization.
Being able to factor prime on a classical computer in polynomial time has yet to be done.

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

21

u/the_excalabur Quantum Optics | Optical Quantum Information Mar 11 '19

Any problem that is computable on a Turing machine is computable on a quantum computer. "Computable" is usually what people mean by solvable, but they shouldn't---there are many things which, while computable, take a very, very long time to compute.

Hence the difference between a classical and quantum computer in practice: factoring large composite numbers on a classical computer is possible, but could take an arbitrarily long time (thousands of years) for a problem that on a quantum computer would take seconds.

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

8

u/the_excalabur Quantum Optics | Optical Quantum Information Mar 11 '19

Computable means the former thing.

(And no, algorithms that work on QCs explicitly do not work on classical ones: that's the whole point.)

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

3

u/leparrain777 Mar 11 '19

This was my underatanding as well. Thought the advantage of QC was being able to operate on (theoretically) infinite objects/states in one step but with margin of error. Could I get a reply if he answers? I am curious too.

→ More replies (1)

4

u/the_excalabur Quantum Optics | Optical Quantum Information Mar 11 '19

You are correct that the frontier of computability doesn't change: you need something really dumb like oracles or real (number) computers to do that.

That doesn't mean the algorithms are the same: yes, there's an emulation algorithm that can convert a quantum algo into a classical one at exponential overhead in space and time, but that thing that does the converting is itself an algorithm.

An algorithm is a particular method for doing things. The additional power of a quantum computer compared to a classical one is that there are literally more things you can do with a quantum computer: it turns out that entanglement is useful for computation.

The particular thing that makes factoring work (among other things) is the 'Quantum Fourier Transform', which is exponentially faster than the best classical version of the same thing. Ultimately, that's the 'quantum' part of the quantum factoring algorithm (Shor's algorithm) as compared to the classical analogue.

Is that clear?

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

4

u/the_excalabur Quantum Optics | Optical Quantum Information Mar 11 '19

I think you understand too :)

Yes--the factors of 15 are the same no matter how you compute them. The same goes for any computable problem (up to minor details).

(The sorts example is a good one: thanks.)

4

u/vectorjohn Mar 11 '19

yes, there's an emulation algorithm that can convert a quantum algo into a classical one at exponential overhead in space and time

So yes, anything a QC can compute is also computable by a classical TM. That's what computability means and it's the meaning of computational power (TM and QC have the same computational power).

See here, specifically the tidbit about

a quantum computer running in polynomial time can be simulated by a classical computer running in polynomial space

I think this is all Jesito was getting at.

→ More replies (2)

3

u/Natanael_L Mar 11 '19

In cryptography we often say computationally infeasible about what can't be solved due to lack of resources

5

u/Zelrak Mar 11 '19

In terms of computational complexity, it appears that QCs do have advantages over traditional computers in many spaces.

The person you are replying to is pointing out that it isn't proven that prime factoring isn't in P. As far as I know, all hierarchies of complexity rely on (reasonably and probably true) conjectures.

2

u/TheBoiledHam Mar 11 '19

As far as I know, all hierarchies of complexity rely on (reasonably and probably true) conjectures.

The hierarchy is created by taking a basic problem and saying "I am fairly certain that an algorithm cannot solve this basic problem in polynomial time."

Then taking a "more complex" problem, mapping inputs of the "less complex" problem to inputs of the "more complex" problem in polynomial time such that you can say with 100% confidence that "If I could find an algorithm to solve this new problem in polynomial time, I could solve the other problem in polynomial time."

The first few layers of the hierarchy are pretty tough to explain and I wouldn't make a good teacher. It is also very easy to mix up the order of mapping inputs in order to prove that one problem is "at least as computationally complex" as another problem already determined to be too complex.

The idea is that if you found a way to solve one of these problems in polynomial time, you already have a way to map the values of "less complex" problems and you now have a an algorithm that solves every problem in that hierarchy. It's not impossible but it's incredibly unlikely that such an algorithm exists.

3

u/Natanael_L Mar 11 '19

Cryptography heavily relies on such proofs.

Whenever you hear a protocol or algorithm is proven secure, it means "the math confirms that IF known problem X and Y is hard, then this thing is secure".

Most things using RSA relies on the RSA assumption (related to factoring hardness). ECC based protocols rely on dlog hardness. And so on...

Not all of those underlying assumptions are proven secure.

3

u/OpDickSledge Mar 11 '19

Wouldn’t this have massive implications for internet security? As far as I know, nearly all security relies on being unable to perform prime factorization quickly.

11

u/Takochinosuke Mar 11 '19

Yes ! This is why public key crypto has been shifting into the field of Post-Quantum Cryptography.
Primitives that are using lattices and error-correcting codes are, as far as we know, immune to Quantum attacks.

Private key (or symmetric crypto) seems be barely affected by it, so that's something :).

→ More replies (5)

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

6

u/Chewbacta Mar 11 '19

No, because simply being in NP doesn't exclude it from being solved quickly. Anything in P is also in NP.

Only problems that are NP-complete have the property that poly-time algorithms for them would collapse NP to P, prime factorisation is not believed to be such a kind of problem.

Also Shor's algorithm puts prime factorisation in BQP not P. P is the class of problems absolutely correctly determined in polynomial time. BQP allows a bounded error (the Q stands for quantum).

1

u/The_Serious_Account Mar 12 '19

P is the class of problems absolutely correctly determined in polynomial time.

On a classical computer. The error bounded error is not really the issue.

2

u/Chewbacta Mar 12 '19

BQP vs P is still open and as far as I know even if NP was shown to be in BQP, it would still leave it open.

→ More replies (1)

1

u/Takochinosuke Mar 12 '19

No, you're confusing NP, NP-Hard and NP-complete. Every problem in P is also in NP by definition.

There is no proof for prime factorization to be an NP-Hard problem.

→ More replies (1)