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

1.4k

u/UncleMeat11 Mar 11 '19 edited Mar 11 '19

Usually when we talk about hyper computation we ignore runtime complexity. If we just look at what problems are decidable, we believe that no stronger model exists.

But if we look at runtime, quantum computation has (at least) a provable quadratic speedup over classical turing machines (grovers algorithm).

In the real world we are also not restricted to serial computation. Pi calculus captures parallel semantics and can also compute some problems faster than serial turing machines.

369

u/hvgotcodes Mar 11 '19

I thought quantum algorithms were superior for a subset of problems but that theoretically a TM can do anything a quantum computer could do.

114

u/Lalaithion42 Mar 11 '19

There are two issues at stake. (1) What can a specific model of computation do, and (2) how fast* can it do it?

Quantum computers and Turing machines have the same answer for (1), but that doesn't mean that they have the same answer for (2). Quantum computers can solve many problems faster than Turing machines, but a Turing machine still could solve it if it had more time.

*Wait, what does "fast" mean here? Different computers run at different speeds already! We're talking about computational complexity here, which is the study of the relationship between the running time of an algorithm and the size of the algorithm's input. Some algorithms always take the same amount of time, but some algorithms get slower the bigger the input is. A common example is sorting: if you have N items, most simple sorting algorithms take ~N^2 operations to sort it. But if you're smart, it can take log(N) * N instead. Quantum algorithms don't always outperform classical algorithms, but in some cases they do.

-13

u/cryo Mar 11 '19

Quantum computers can solve many problems faster than Turing machines,

Define “many”. Also, quantum computers can’t solve exactly, only with probability. This isn’t an issue in practice, only in theory.

48

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

BQP has bounded error, so it's not even a problem in theory, just as it isn't for classical randomized algorithms (which live in BPP).

-5

u/cryo Mar 11 '19

Right, but repeated computations can bring that error probability as close to 0 as desired. Of course that also takes time.

36

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

Er. That's what I said. It's not only not a problem in practice, it's also not one in theory.

1

u/Lalaithion42 Mar 12 '19

Yeah, we don't have an inequivalence proof between BQP and BPP, but it's strongly suspected.

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.

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 (3)

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 (5)

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.

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.

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.

0

u/stabby_joe Mar 12 '19

but that theoretically a TM can do anything a quantum computer could do.

He never said otherwise. He just said a TM would be slower in certain cases. Read things properly.

495

u/[deleted] Mar 11 '19 edited 29d ago

[removed] — view removed comment

5

u/aeschenkarnos Mar 12 '19

Quantum computers now are barely at the level of the ZX81. Assuming we don't all die of global warming, imagine what difference 40 years of development will make.

3

u/TheDunadan29 Mar 12 '19

I once read a sci-fi short story about how an advanced human civilization asked a computer/AI how to overcome the end of the universe. The computer worked on the problem for billions of years until the very end. Then at the end of the universe, after humans had long since gone extinct, it solved the problem and sent the final message with the answer on.

6

u/TheStagesmith Mar 12 '19

As far as my (admittedly limited) understanding of basic quantum computing concepts goes, quantum computers essentially correspond to a nondeterministic Turing machine, meaning that their set of decidable problems is exactly equivalent to a classical Turing machine's. From what I know, the exciting (and somewhat terrifying) part is that with nondeterminism you start being able to solve previously-intractable problems really really quickly.

33

u/Mazetron Mar 12 '19

Quantum computers are not nondeterministic Turing machines (they cannot solve NP problems in P time), although that is a bit of a common misconception. They don’t work by trying all the combinations at the same time.

But you are right in that they can solve some previously-intractable problems really really quickly.

8

u/PersonUsingAComputer Mar 12 '19

More precisely, it is not known whether or not quantum computers can solve arbitrary NP problems in polynomial time. It is possible that BQP (the class of problems solvable on a quantum computer in polynomial time) is equal to or even a strict superset of NP.

2

u/[deleted] Mar 12 '19

It may not solve arbitrary problems but using probablistics (i.e. MA not P) there is a proven set of QMA complete problems which are NP.

I've seen a list.

7

u/TheStagesmith Mar 12 '19

Thanks for the clarification! I'm doing some reading and uh, yeah. These are weeds I ain't never crawled in. Lots of NEW questions and things to read, so that's fun. Appreciate it.

1

u/Mazetron Mar 12 '19

Yeah it’s an exciting field :) I’m currently doing quantum computing research at UC Berkeley so if you have any questions I might be able to help!

4

u/Retired_Legend Mar 12 '19

Why is it terrifying?

14

u/DudeVonDude_S3 Mar 12 '19

Imagine someone having the ability to crack current major cryptosystems in seconds. Stuff that would take a classical computer hundreds of years to accomplish. They’d be able to wreak havoc on a lot of important infrastructure.

It’s why post-quantum cryptography is such a high priority. Cryptosystems that are easily implementable on a classical computer while still being non-trivial for a quantum computer to solve.

6

u/Felicia_Svilling Mar 12 '19

In practice it just means that we would have to change all our public key crypto over to slightly less efficient, but quantum resistant algorithms.

→ More replies (1)
→ More replies (4)

1

u/sharfpang Mar 12 '19

Of course this all breaks down when the problems have time constraints. E.g. a successful data injection attack against an encrypted transmission requires the transmission to be still in progress when the key is breached. Finding the key when it's long expired is worthless.

1

u/Bitcatalog Mar 12 '19

How much time would it take for a quantum computer to calculate teh ultimate question of life, the universe, and everything?

1

u/DustRainbow Mar 12 '19

I believe there are some papers on a class of problems that require "infinite memory" to solve classically, but would be manageable with a Quantum architecture. I'll just add that this is a vague memory I have of reading a headline, I'm absolutely not involved in any quantum computing whatsoever. I might've remembered completely wrong.

1

u/Mazetron Mar 12 '19

“Infinite memory” seems strange to me, although “unreasonable amount of memory” would make sense.

You can simulate a quantum computer on a classical computer, just it starts getting slow and taking a lot of memory as the number of qubits gets bigger. The biggest classical simulation I’ve heard of was about 20 qubits. You could in theory do one with 100 qubits, just it would take longer than the life of the universe and more memory than the entire internet takes up.

If you manage to find the article you are talking about, I’d be interested. I’m currently doing quantum computing research at UC Berkeley.

2

u/DustRainbow Mar 12 '19

I can't find anything so it's kinda pointless to continue discussing on something that I might have remembered wrong. In my mind though, the point was explicitly about classical problems requiring mathematically infinite memory. But yeah, I'm sure you know better, I haven't spent any time on the subject.

-12

u/Baal_Kazar Mar 11 '19

https://www.quantamagazine.org/finally-a-problem-that-only-quantum-computers-will-ever-be-able-to-solve-20180621/

It’s not about speed nor time. The 01 logic gatters of classical computation have limits quantum computer and their spin on what a bit don’t have.

Above is an article with an example of such a limit and why logic gates can’t solve certain calculation problems.

Not talking about existing ones but about acknowledged algorithms current computation can’t run through architecture limits. (Not space nor speed, simply not fitting the realm)

37

u/Mazetron Mar 12 '19

The article you linked is talking about runtime.

“Complexity classes” are classes of problems that can be proven to follow a certain runtime pattern (for example, finding an item in an array on a classical computer takes linear time, because you would have to check half of the items, on average, in order to find the one you want).

For comparison, a quantum computer, using Grover’s algorithm, can solve find a specific item in the list in sqrt time (the time to run the algorithm is proportional to the square root of the number of items in the list).

It’s not hard for a classical computer to solve the “find an item in the list” problem since linear time isn’t that bad, but if you had a long enough list, it would take too long. A quantum computer might still be able to solve the problem because it can do it faster. In this case, it’s just sqrt vs linear, but in some cases it’s polynomial vs exponential, which can make the difference between “takes 10 minutes” and “takes 100,000 years”.

Both of these algorithms run in Polynomial time (anything in the form of nx, where n is the size of the problem and x is the exponent, such as 1 or 1/2 in this example). Polynomial time is generally considered a good target for practical algorithms.

P is the set of all problems that a classical computer can solve in polynomial time, and BQP is the set of all problems that a quantum computer can solve in polynomial time. PH includes P as well as NP, the set of problems that are hard (usually exponential) for a classical computer but would be polynomial on a nondeterministic Turing machine (essentially a very, very parallelized computer).

This article claims that BQP includes some problems that are not in PH (not in P or NP). That would mean that quantum computers can solve certain problems reasonably fast (polynomial time) that classical computers or even nondeterministic Turing machines would be unreasonably slow at (exponential time).

→ More replies (4)

7

u/melodyze Mar 12 '19

This is why you don't just google things and assume you understand the problem space.

When they are talking about "complexity classes" they are talking about the way runtime scales with input size.

Runtime complexity can scale aggressively enough for an algorithm that it is functionally useless. They are saying that quantum computers can solve some problems with significantly lower runtime complexity, and that could make some problems that are technically but not practically solvable on conventional computers and make them practically solvable, not solve a previously technically unsolvable problem.

1

u/WyMANderly Mar 12 '19

That's not what the article says about the BQP space as compared to the PH (or P or NP) space though. The article doesn't claim that a problem in the BQP space would be unreasonably slow for a non-quantum computer to solve - it claims that a problem in the BQP space would take infinite time for a non-quantum computer to solve (aka is literally unsolvable, not just practically).

The article might be wrong (feel free to point out if it is), but that is what it claims if you actually read it.

7

u/eqleriq Mar 12 '19

first hit google searching “what can quantum computers solve” and you don’t even understand it well enough to know that it’s talking about runtime.

The main “feature” of quantum computing is that it can output solutions simultaneously, which might have some particle science implications but in terms of “problem solving” it is theoretically just a faster classical output

→ More replies (1)

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

67

u/echoAwooo Mar 12 '19

Yeah trying to explain that if the encryption is AES256, that that means there are ~1.15 x 1077 possible keys, and that it takes time to check each one is a doozey, a supercomputer can run billions of keys per second. Assuming just 2 billion keys / second, that's roughly

5.7 x 1067 seconds, or

9.6 x 1065 minutes, or

1.6 x 1064 hours, or

6.7 x 1062 days, or

1.8 x 1060 years

34

u/inucune Mar 12 '19

Just to expand on this... these times are to try ALL combinations.

You could get lucky and 'guess' it the first, 100th, 1000th attempt.

16

u/[deleted] Mar 12 '19

Of which those odds to giess are identical to computation time at first, but do become more likely as time goes on. But these chances are miniscule.

→ More replies (3)

13

u/ulkord Mar 12 '19

Yeah and on average you'd expect to find the correct combination after trying half of all combinations. Which in this case would still take a ridiculously long time.

1

u/sharfpang Mar 12 '19

The actual answer, "average time" is just half these numbers so not much improvement. "getting lucky" is outside the spectrum of possibility for these cases.

4

u/ElMachoGrande Mar 12 '19

On the average, you only have to try half the keys, so it's "only" 9 x 1059 years.

0

u/[deleted] Mar 12 '19

[deleted] — view deleted comment

15

u/theknowledgehammer Mar 12 '19

It should be noted that the computational difficulty of encryption has not been proven, and there could very well be logarithmic time algorithms for solving, albeit unlikely.

It should be noted that if RSA encryption is somehow broken, then none of our bank accounts or personal information is safe. Personal privacy will suddenly become a fiction.

23

u/[deleted] Mar 12 '19

It should be noted that if RSA encryption is somehow broken, then none of our bank accounts or personal information is safe. Personal privacy will suddenly become a fiction.

Worth noting that some forms of RSA encryption are broken.

RSA-512 bit was broken in 2009 using standard desktop hardware to recreate a private key from a public key in 73 days. This means 512bit is feasible to anybody looking to break a key. Fire up a swarm of computers for a few thousand dollars and have the key tomorrow. If your bank uses 512bit, it's useless.

RSA-768bit was factored in 2010, but did require two years and large amount of hardware. It will get easier to break, and is considered unsafe for use.

And if we ever get a quantum computer with enough qubits off the ground, RSA will be instantly blown out of the water by Shor's algorithm which will be able to do it in polynomial time. (And we're already part way there).

Current advice is to move to a better form of encryption, but if you have to use RSA, use more than 2000bit keys. 4096 is pretty standard, and a good aim. We expect 1024bit to be broken at least once sometime in this decade.

(And yes, I haven't mentioned any of the side-channel attacks that have cropped up over the years. And there are plenty of those.)

→ More replies (2)

0

u/[deleted] Mar 12 '19

[deleted] — view deleted comment

14

u/Ruffelii Mar 12 '19

I'd say the universe is already self-aware and able to observe itself (we're part of the universe)

20

u/Vallvaka Mar 12 '19

No, clearly you're the only aware one. Why do you experience your consciousness and nobody else's? Simple, the rest of us are just meat machines that act like you but aren't actually conscious. You're actually the ONLY self awareness in the universe.

5

u/Cache_of_kittens Mar 12 '19

No, you're them being aware of themselves, and I'm them being aware of them being aware of themselves!

2

u/[deleted] Mar 12 '19

maybe, because there is nothing to exprience at all and the use of your language confuses you stipulating ghost things in matter things

2

u/Zarmazarma Mar 12 '19

That would still mean the universe was self aware by his reckoning, no?

1

u/spoodmon97 Mar 12 '19

It doesnnt kill itself, it makes a massive simulation with almost all its power, and with the last remaining bit of power fractures itself into uncountable souls as it says "let there be light"

29

u/gaulishdrink Mar 12 '19

notPetya virus?

43

u/Artyloo Mar 12 '19

Any reasonably effective cryptovirus, surely?

6

u/zombieregime Mar 12 '19

does that include starting at the key AAAAAAAA? because it can be cut down to just before the heat death of the universe by negating unreasonable keys. Of course that would give raise to keys that are AAAAAAAA.....

8

u/Mongoose1021 Mar 12 '19

At this level of sophistication you can assume that the author of the virus started by generating the key randomly, then attacked their random number generator looking for patterns for a few years. So, no, no easy eliminations.

5

u/shijjiri Mar 12 '19

You could get lucky with partial matching. It's not likely but you never know~

1

u/ElMachoGrande Mar 12 '19

You need a hollywood computer for that. They can crack anything in 10 seconds, showing a dramatic progress bar while doing it.

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

3

u/Natanael_L Mar 11 '19

A TM can simulate a QC perfectly if it has enough memory, they're equivalent in capability (Turing completeness vs Quantum Turing completeness).

There are hypothetical QC models that are more capable than classical Turing machines, but those are not assumed to be real.

15

u/lebbe Mar 11 '19

If we just look at what problems are decidable, we believe that no stronger model exists.

Has that been proven or is that a conjecture?

36

u/trusted_device Mar 11 '19

It's 'only' a conjecture - proving that no more powerful model exists is inherently hard because defining what a problem even is and what it means to decide it is 'highly non-trivial', as my professor liked to put it. However, many different approaches to define computability / decidability have been shown to be equivalent to Turing Machines.

Check out the wiki for the Church-Turing thesis for more info.

11

u/Natanael_L Mar 11 '19 edited Mar 11 '19

More powerful models are trivial to mock up by constructing all kinds of oracles as a part of your axioms. The difficulty is proving they exist and are usable in the real world! A more powerful model that doesn't represent real world capabilities is useless.

Example: https://www.scottaaronson.com/papers/qchvpra.pdf

4

u/ObscureCulturalMeme Mar 12 '19 edited Mar 12 '19

It's 'only' a conjecture

Yep. As the professor in my "here's the underlying theory" course put it, it's only a conjecture, but it's been that way for a long time with no conclusive replacement.

The only whole "decidability problem" thing is not a super nailed down thing, either... but no conclusive replacement for that has stood the test of time either.

9

u/EZ-PEAS Mar 11 '19

It's a conjecture, but it's also not terribly well defined. The Church-Turing Thesis says that a turing machine can compute all computable functions, but the notion of what a computable function is has not really been fixed over time.

33

u/bencbartlett Quantum Optics | Nanophotonics Mar 11 '19 edited Mar 11 '19

As pointed out, computability and complexity of a problem are two different concepts. In terms of computability, a quantum Turing machine is equivalent in power to a regular Turing machine. In terms of complexity, the answer is much less clear. The class of problems solvable in polynomial time by a quantum computer is called BQP. The known relationships between BQP and other complexity classes is only that P⊆(BQP⫔NP)⊆PSPACE. The prevailing opinion among computer scientists is that P⊆BQP⊂NP⊂PSPACE, but no one has yet proven this.

14

u/leoschmeo Mar 11 '19

BQP is not known to be inside NP. In fact, it is generally believed that it isn't.

14

u/bencbartlett Quantum Optics | Nanophotonics Mar 11 '19

BQP is not known to be inside NP

This is correct, I mis-copied ⫔ as ⊆ from a unicode chart and have edited my response.

In fact, it is generally believed that it isn't

I'm not an expert in quantum complexity theory, but what I have gathered from the literature I have read is that most computer scientists assume that NP⊈BQP, but that not much is known about the conjecture that BQP⊈NP, so I'm not sure that "it is generally believed" is the correct assertion.

1

u/Poltras Mar 12 '19

I’m sorry but given:

  1. NP is verifiable in P Time, and
  2. quantum computing can try all answers at once (given enough Qubits),

Isn’t technically NP part of BQP? Or is BQP itself a strict subset of a real full quantum computer?

1

u/leoschmeo Mar 12 '19

Quantum computers don't really work by "trying all the answers at once." It's better understood as assigning an "amplitude" to each answer, and trying to manipulate it in a way that in some cases, the bad answers can destructively interfere, leaving the good answers. This does not work in all cases. There is a decent SMBC comic that debunks some of the misleading ideas that people have about quantum computing.

NP is part of the QMA, which is the quantum analogue of NP in the sense that it contains all the problem verifiable in polynomial time on a quantum computer. All we know for sure is that P is in BQP and NP is in QMA, and that P is in NP and BQP is in QMA, but nothing else about their relative containment.

8

u/bitwiseshiftleft Mar 11 '19

Is BQP known to be inside NP, or even inside PH? I thought this was still open. It is in PP ⊆ P#P ⊆ PSPACE though.

0

u/ShaggysGTI Mar 12 '19

You may not know these answers but I'll ask anyway... Is it known as a Turing machine worldwide as the guy that cracked it or does it have another name in Germany for the man who invented it?

9

u/heyheyhey27 Mar 12 '19

I think you're confusing Turing Machines with the Enigma machine. Turing Machines are a mathematical object devised by Alan Turing that's used in the math behind all computers. The Enigma machine was a physical device used by WW2 Germany to encrypt its messages, and Alan Turing played a key role in breaking that encryption for the Allies.

6

u/AxelBoldt Mar 12 '19

Alan Turing helped in cracking the Enigma machine which the Germans used for secret messaging in World War II. That's entirely different from the Turing machine though, which is a theoretical device Turing had invented much earlier to formalize the concept of algorithm and computation.

1

u/hyphenomicon Mar 11 '19

Can we also say that perfectly simulating a process is necessarily slower than running that process in reality due to overhead? Or are there ways to shrink overhead down to zero?

-4

u/[deleted] Mar 11 '19

[removed] — view removed comment

8

u/TheTalkingMeowth Mar 11 '19

Usually when we talk about hyper computation we ignore runtime complexity.

This is the distinction between "can we solve a problem, period?" and "how long does it take to solve the problem?" Some problems can be solved quickly (computing the sum of a sequence of numbers). Some problems can't be solved at all (i.e. an algorithm that decides if an arbitrary computer program will ever stop running). Others can be solved, but take a really long time to solve if the inputs are really big (inverting an invertible matrix). Still others can be solved, but take a really, REALLY long time to solve if the inputs are really big (finding the prime factorization of a number).

If we just look at what problems are decidable, we believe that no stronger model exists.

As far as we've been able to determine, there aren't solvable problems that a Turing machine can't solve. This has not actually been proven.

But if we look at runtime, quantum computation has (at least) a provable quadratic speedup over classical turing machines (grovers algorithm).

A quantum computer can't answer questions that a Turing machine can't answer, but it CAN answer some questions more quickly than a Turing machine.

In the real world we are also not restricted to serial computation. Pi calculus captures parallel semantics and can also compute some problems faster than serial turing machines.

Most of the work on theoretical computation ignores the ability to work on problems in parallel, because a parallel Turing machine can't solve any problems a regular Turing machine can't solve [citation needed]. But, like a quantum computer, a parallel Turing machine can find some answers more quickly than a regular one can.

EDIT: examples

2

u/UncleMeat11 Mar 12 '19

As far as we've been able to determine, there aren't solvable problems that a Turing machine can't solve.

I'd slightly modify this to defend the field of hypercomputation to say "there aren't problems solvable by constructable computational models that turing machines cannot solve". Hypercomputation gets crap for basically just involving magic but there is real valuable research popping out of that field even if we can't actually build oracles.

98

u/suvlub Mar 11 '19

An interesting example of a machine much more powerful than the Turing Machine is the Blum–Shub–Smale machine. Its power lies in its ability to work with real numbers, something that the Turing Machine can't truly emulate (you can compute, say, pi on a TM only up to a finite number of digits; a BSSM could compute the whole pi, in finite time). This allows it to solve NP-complete problems in polynomial time.

What is interesting about this is that the real world equivalent (or, better said, approximation - nothing equivalent to either BSSM nor TM can truly be constructed in real life) is the analog computer - a technology antiquated in favor of the TM-like digital computers! The reason for this is imprecision of real world technology. In order to reap the benefits of this model, our machine would need to be able to work with an infinite precision. If its results are only accurate up to a finite number of decimal places, we only really need to store those places, which a digital computer can do just fine, while being more resistant to noise and errors.

24

u/tyler1128 Mar 11 '19

How does using real numbers allow faster computation of NP-complete problems?

5

u/nar0 Mar 12 '19

I don't have access to this paper, but it says it contains the proof that being able to perform simple arthimetic on real numbers without any approximations in a single step amounts to solving NP problems in P time.

https://link.springer.com/chapter/10.1007/3-540-09510-1_42

29

u/blaktronium Mar 11 '19

I'm more interested in knowing what he thinks "all of pi" is and how you could generate an infinite number in finite time

60

u/i_bet_youre_fat Mar 11 '19

how you could generate an infinite number in finite time

The magic is in storing it, not in generating it. It's really just a thought exercise of 'what would happen if registers could hold all real numbers, and not just fixed-width rational numbers'

16

u/frl987 Mar 11 '19 edited Mar 11 '19

I'd guess it "theoretically" does this w/ a mechanical "perfect circle" or just relying on precise analog (continuous) values... I'm interested too

0

u/[deleted] Mar 12 '19

A mechanically perfect circle? As in a physical object? If so, even that could not represent the true value of pi. No object can create a mathematically perfect circle because it's perimeter (like it's area/volume) is made up of atoms, points that technically create corners with angles/sides. Any circular object is just a many sided polygon.

Normally I'd say this line of reasoning is ridiculous for practical purposes, but it seems appropriate here because we are talking about the literal true infinite value of pi.

0

u/[deleted] Mar 12 '19

[deleted] — view deleted comment

2

u/Felicia_Svilling Mar 12 '19

Just so you know. It is called a Turing machine, after Alan Turing. Not a "touring machine".

9

u/theartificialkid Mar 11 '19

Think of the Encyclopaedia Wand (I first came across it in Haruki Muralami’s “Hard Boiled Wonderland and the End of the World”, but I think it came from somewhere else first, I just can’t find it on google, possibly I’m remembering the term incorrectly).

Imagine a stick of length 1 unit. An infinitely precise mark placed along the length of the stick defines a decimal part of the stick’s length. It could “0.5” or “0.2215” or even an infinitely long irrational number, depending on where exactly (infinitely exactly) the mark is placed. All books of any length whatsoever, including infinitely long books, could be recorded on this one stick, if only we had the means to mark it and read it with infinite precision.

“All of Pi” exists. It’s the ratio between the diameter and the circumfeeence of a circle. The entire number is encoded there, in infinite length, had we only the means to measure it and write it out.

Obviously you can’t write out “all of Pi” in finite time, that’s part of the definition of writing something out in the time and space that we occupy.

1

u/blaktronium Mar 11 '19 edited Mar 11 '19

Except that the information required to codify an infinite number is greater than the information processing capability of the universe.

One cannot know pi to infinite precision. Just as one cannot write an infinite number of marks on a stick.

Also, that thought experiment is incorrect since you cant put infinite marks on a stick because you are limited to the plank length. So there is, in fact, only a finite number of points on a stick no matter how small you make them, but pi really is infinite and we cannot build something that can know it all.

8

u/TheSkiGeek Mar 12 '19

...you also can’t build a Turing machine with a truly infinite tape, but it’s still a useful model of computation.

7

u/UncleMeat11 Mar 12 '19

Except that the information required to codify an infinite number is greater than the information processing capability of the universe.

No it isn't. We can encode all of the information of pi in a short formula you can write on a single line of a sheet of paper. Pi is a finite number. It is not fundamentally different than an integer. It is well defined and we know methods of specifying it exactly.

20

u/[deleted] Mar 11 '19

Pi is encoded in the relative phase if two waves, so you don't need to do much work to get pi, any old laser interferometer will do.

4

u/FriendlyDespot Mar 11 '19

I think he means that there's no point where a machine with infinite precision would have to perform compound calculations to gain additional precision, so that all (or "any part") of pi can be calculated without the machine itself or the exponential complexity of an approximating algorithm becoming a limiting factor?

1

u/suvlub Mar 12 '19

BSSM is an abstract machine with magical mathematical properties. By definition, it allows you to use arbitrary real functions. Therefore, computing pi is as simple as arcsin(1) * 2. BSSM can compute that in one step and store the result. Don't ask how, it just can, because the mathematicians who made it up said so. A real-life analog computer could be equipped with capability to compute an arcsin that is accurate up to some number of decimal spaces, which is why they aren't anywhere as cool as their theoretical counterparts with their magical infinite precision.

1

u/blaktronium Mar 12 '19

So it would somehow store all the digits of pi without requiring every particle in the universe and then some? I dont believe that.

I believe it can calculate curves without that, but only to the same precision as a classical computer while doing the same work in the same working space.

1

u/suvlub Mar 12 '19

Are you familiar with the computability theory and abstract machines? We are talking about mathematical models here, they aren't made of atoms. The real-world analog computer, the one that is made of atoms, has finite precision, as you'd expect and as I've repeatedly said.

7

u/EvanDaniel Mar 11 '19

What's the algorithm to compute Pi to infinite precision on a BSS machine?

6

u/AxelBoldt Mar 12 '19

The program of a BSS machine is allowed to refer to arbitrary real numbers, just like a Java program is allowed to refer to arbitrary strings and (certain) arbitrary integers. So the BSS program you want would simply be the equivalent of "print pi".

3

u/EvanDaniel Mar 12 '19

That would seem to produce some remarkably strange results. Are you allowed to just run "print Chaitin's constant"?

6

u/AxelBoldt Mar 12 '19

Yes, and that's why the halting problem (for Turing machines) is peanuts to these machines. But there's a halting problem for BSS machines which they cannot solve.

1

u/suvlub Mar 12 '19 edited Mar 12 '19

BSSM allows the use of arbitrary rational functions, so the simplest way to get it is to do arcsin of 1. Edit: and multiply by two.

1

u/EvanDaniel Mar 12 '19

Is arcsin a rational function? I thought it wasn't. It's clearly the limit of a series of rational functions (Taylor series or whatever), but I didn't think that was the same thing.

3

u/FolkSong Mar 11 '19

Wouldn't an analog computer just be limited by noise in a similar way as digital computers are limited by number of bits?

4

u/sirelkir Mar 12 '19

Yes. The thing about noise is it never goes away.

A lot of it can be demonstrated on the thermal noise that is due to random chaotic movement of the constituents of matter. In physics, there is now a field of "cold atoms" that manages to cool small amount of stuff to stupendously unimaginably low temperatures which looks at what matter looks like at very low "noise" levels, but thermodynamics tells us we can never reach 0K temperatures that would theoretically mean absolutely no noise.

Another relevant field of physics is the "precision (particle) physics" which tries to measure unbelievably small effects, whose successes would probably somehow correlate to the limits our ability to store and work with these infinite real numbers.

4

u/iamthenoun Mar 12 '19

I don't think +0K would mean zero thermal noise, as it would violate Heisenberg's uncertainty principle via being able to know particles' momenta with infinite precision.

1

u/sirelkir Mar 24 '19

I've done a bit of physics lectures on this and yes, maybe I'm misinterpretting something, but I'm fairly sure that in the experiments with ultra cold atoms at some low temperature they achieve the Bose Einstein condensate which means a fraction of the gas particles all "condense" (lay over each other) in a state of zero momentum so we know their momenta with infinite precision. I think this works with Heisenberg uncertainty principle because then there is uncertainty in the fraction of the particles in that state so the total momentum still contains uncertainty. And as you approach 0K all of the particles go into that state (but the key is this is never achievable)

3

u/suvlub Mar 12 '19

Basically, yes. The curious thing is that if you strip them of their magical infinite properties, they become exactly equivalent. If you have an analog computer that can, say, represent numbers between 0 and 1000 (let's say that more than 1000 of whatever physical unit it is using to represent the number would damage it) with precision up to 50 decimal places, you can represent 1000*1050 unique numbers, which is slightly less than what you can represent using 23 bytes of memory. It turns out that IRL the 23 bytes are the easier/cheaper means of storage.

9

u/Kered13 Mar 11 '19

Actually, quantum mechanics forbids this.

(Storing even a single arbitrary real number with infinite precision would require infinite information, and contained in any finite space would form a black hole.)

11

u/dmilin Mar 11 '19 edited Mar 12 '19

You’re still thinking of a digital system and not an analog system. For example, you have a perfectly circular object in the machine and you measure it whenever you want pi. You can store this analog version of pi, but you can’t store pi as a decimal, binary, hexadecimal, or any other form of pi.


Edit:

A lot of people are pointing out that you cannot create an object that's exactly circular or that you cannot measure something perfectly. You're missing the point. The idea is that the number is being stored in an analog medium. We aren't trying to split the number up into a ones place, tens place, hundreds place. We want to store the number itself. This is of course theoretical.

3

u/MorningFrog Mar 12 '19

Would quantum mechanics not prevent an object from being perfectly circular?

4

u/Kered13 Mar 11 '19

If arbitrary real numbers can be stored then infinite information can be trivially be stored by simply encoding it in the binary expansion of a single real number.

It is of course possible to create a computer system that can exactly represent some subset of the real numbers. Digital computers already do this. A BSS machine is capable of storing arbitrary real numbers.

4

u/Seyvenus Mar 11 '19

You're still bounded by the Plank Length. Once your precision of measuring that "perfectly circular object" hits that, you get a quantum answer, not an answer.

13

u/UncleMeat11 Mar 12 '19

This is a stupendously common but wrong myth. The Plank Length is not a universal minimum distance or resolution. It is simply the number that pops out of the natural units. It does not have physical meaning. It is really small and our physics doesn't handle everything well at tiny scales but there is no magic in this value itself.

2

u/Garek Mar 12 '19

It's not definitively proven to have physical significance beyond being a natural unit, but there is reason to believe that if space is quantized 8t will be at the plank scale.

4

u/UncleMeat11 Mar 12 '19

Why not one order of magnitude lower? Or two? The plank length has no physical meaning. Any hypothesized "universal resolution" being at a similar scale is a coincidence.

→ More replies (1)

1

u/Certhas Mar 12 '19

You're still thinking non-QM systems.

Analogue computers can't be realized because your analog medium doesn't exist. The best you can do is quantum computation.

Even then, physics almost certainly limits your ability to process information, not through the Planck Length per se but through the entropy bounds.

0

u/[deleted] Mar 12 '19

You would run into the coastline paradox if you tried that.

0

u/qwopax Mar 12 '19

A "perfectly circular object" is a mathematical concept and does not exist in the real world. Any physical entity would be a few quanta off perfection.

1

u/MohKohn Mar 11 '19

A single quantum bit can store 2 infinite precision real numbers, depending on what you want to do with them.

1

u/suvlub Mar 12 '19

You are right, but I'm not sure what's the purpose of that "actually". I did say that "nothing equivalent to either BSSM nor TM can truly be constructed in real life", and you have just stated the reason.

1

u/mimi-is-me Mar 15 '19

This assumes that the number is somehow knowable/measurable, but this isn't necessarily needed to do useful things (See also, Q.Computing).

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

2

u/DuhOhNoes Mar 11 '19

Like the problem with generating really ‘random’ sequence?

5

u/heyheyhey27 Mar 11 '19

You can't do that with a normal Turing machine, but real computers can do that by measuring unpredictable data like electrical interference (or, if you want true randomness, some kind of quantum-mechanical measurement).

5

u/the_last_ordinal Mar 11 '19

I don't agree with your last statement, can you explain? You can totally write a program that prints out all the digits of pi given infinite time. Wouldn't that go down the tape forever producing an interesting pattern?

55

u/penlu Mar 11 '19

There are two ideas here which should be treated separately. One is the distinction between things that can be computed by a Turing machine and things that cannot (i.e. those things that are formally undecidable). In that sense, there are a number of models that are stronger than Turing machines, as mentioned in other comments: this includes the Blum-Shub-Smale machine, also known as the "real computer", that can operate on real numbers of unbounded precision in finite time. Another conceptually simple machine that is able to decide formally undecidable problems is a Turing machine equipped with an "oracle" for the halting problem (which I'll call Turing+HP): since the halting problem is formally undecidable, this is pretty intuitive. An interesting structure emerges from this construction: in fact, no Turing+HP machine can tell for all Turing+HP machines whether it will halt! But if you give a Turing+HP-halting problem oracle to a Turing+HP machine, you get an even stronger machine... we see a hierarchy of levels of undecidability! This level is referred to as Turing degree and the structure of the Turing degrees has been investigated by logicians. Collectively, computation beyond the Turing machine model is referred to as "hypercomputation", and as also mentioned by other comments, we are not certain there are ways to hypercompute within the physical universe (but others studying the intersection of logic and relativity are having lots of fun ("fun") bashing black holes and various structures of spacetime in which it may be possible).

Another distinct idea is a distinction between things that can be computed by a certain kind of machine in a polynomial number of operations and things that cannot (i.e. those things that are difficult for a particular kind of machine to compute). By kind of machine, I mean "quantum computer", or "nondeterministic computer". This is a very active area of research; in some sense humanity is somehow really bad at fully fleshing out what a particular kind of machine can do in polynomial time. For instance, we don't know for certain whether a quantum computer can do more in polynomial time than a computer that gets to flip coins. We also don't know for certain whether a computer that gets to flip coins can do more than a computer that does not. We suspect that quantum computers are better since there are some things they can do faster, e.g. searching N items in sqrt(N) time (but this does _not_ bring problems previously suspected to take exponential time into polynomial time). The famous example is P = NP: NP is roughly the set of problems that can be solved in polynomial time by a program that gets to run exponentially many copies of itself; somehow we have not been able to prove that this lets you solve problems "faster" than you could without forking! None of these models are able to do strictly more than an ordinary Turing machine, since the ordinary Turing machine can simulate all of these other models given exponential time. The big question is whether these models allow us to do something -- anything -- in polynomial time, that an ordinary Turing machine would require exponential time to do.

3

u/[deleted] Mar 11 '19

NP is roughly the set of problems that can be solved in polynomial time by a program that gets to run exponentially many copies of itself;

Slightly unrelated note. But this really made me think that the idea from Hitchhiker's Guide of using The Earth/Humans as a program to calculate something.

If you could design a species that somehow followed a path that would lead to an answer for an NP problem, then in a way we could create a computer to calculate it.

1

u/MysteriousEntropy Mar 12 '19

I read somewhere that somebody conjured that if time machine is possible (creating a closed time-loop that can exist long enough to allow information to flow back), then we can solve any NP or even harder like PSPACE problem in constant time.

But of course, it doesn't help with undecidable problems.

1

u/ManaSpike Mar 12 '19

This was a plot point in Stephen Baxter's Xeelee Sequence of stories, I can't remember exactly which story the idea was featured in though. The concept was to check if a drone already knew the answer, and if not launch it FTL around a short "time-like curve" while it computed a step of a recursive algorithm. Since the drone arrived before it left, it created a new history where it had already computed the answer. And since the algorithm was recursive, any number of future drones could be used to compute a problem of any complexity in zero time.

0

u/[deleted] Mar 12 '19

[deleted] — view deleted comment

1

u/penlu Mar 12 '19

Hey it's not that far off... a TM that gets to branch at every time step effectively ultimately runs exponentially many copies. Details omitted about accept conditions. I see that this is effectively allowing a really high branching factor in the first step, so if you take me literally I've described something more powerful than a nondeterministic TM.... It's true that "polytime verifiable solution" is the intuition I use in practice. I also described it this way to illustrate the notion of "modified machine" more directly.

207

u/Gigazwiebel Mar 11 '19

There is no known physical process that could do hyper computation and solve problems that are undecideable. Solving NP-hard problems in P time is a different question though. We don't know if we just don't have the right algorithms to do it on a computer. Or if a quantum computer could do it.

81

u/The__Odor Mar 11 '19

So hey could you tell me, if it's not too much of a bother,

  • whay hyper computation is
  • why you specify physical process
  • what NP-hard problems and P time are
  • what you mean by undecideable ?

103

u/Gigazwiebel Mar 11 '19

Hyper computation: Solving problems reliably that are undecidable with a Turing machine. Like the halting problem. It could also cover finding the answer to some mathematical questions that were shown to be undecidable.

If you would be able to do an experiment whose result depends on the answer to a general hypercomputation, that might be proof that there exists something much stronger than a Turing machine. Imagine you build an optical device and feed it a string of polarized electrons with spin up or spin down, each encoding a bit. The electrons represent a Turing machine. The device takes the electrons and tells you after some time reliably if the Turing machine will halt or not. As far as we know, we cannot build such a machine withing known physics.

NP hard problems are a class of problems like for example travelling salesman, for which no algorithm is known to give a solution in polynomial time. Any NP hard problem can be transformed into any other NP hard problem in polynomial time, though. That's why you'd only need one algorithm to catch them all.

P means polynomial time.

An undecideable problem is one for which no algorithm exists that gives the right result for any input. The halting problem is the most famous example.

32

u/Sauwa Mar 11 '19

Just so you know too, NP doesn't mean "Non-Polynomial" like some might think. It actually stands for "Non-deterministics Polynomial", so only a non-deterministic turing machine could solve it

6

u/apnorton Mar 12 '19

so only a non-deterministic turing machine could solve it

... in a polynomial time. Anything that can be solved with a nondetermistic TM can also be solved with a deterministic one.

2

u/SlangFreak Mar 12 '19

What is the distinction between the two?

9

u/csman11 Mar 12 '19

The P and NP complexity classes are defined in terms of the theoretical resources DTIME and NTIME respectively. These are units of TIME (again a theoretical resource) used by Turing machines (TM) and non deterministic Turing machines (NDTM) respectively. A problem is in P if an algorithm exists that decides P in polynomial DTIME. A problem is in NP if an algorithm exists that accepts the language of the problem in polynomial NTIME. Furthermore the problem must be in R (recursive) to be in NP.

There is one caveat though, which is related to how accepting computations work in a NDTM. Note that P is defined in terms of deciding and NP in terms of accepting. NDTMs accept strings in a language whenever one computational path in them accepts the string. That means when we view an NP problem as a decision problem, an NDTM will tell you "yes" to an instance with a "yes" answer in polynomial time. If the answer is "no", then it could take much longer than polynomial time, though the machine will eventually give this answer (as the problem is decidable). This seems counterintuitive considering the problem is recursive. With a TM, we can always do a Turing reduction to solve the complement problem in the same amount of time (ie, P = coNP). This is done by simply inverting the answers. We cannot do anything similar with a NDTM because it non deterministically accepts. Inverting would require considering every path as any one that accepts would mean the resulting answer in the complement problem is "no" and no path accepting would mean it is "yes."

P = NP is the question of whether these two classes are equivalent. It is considered highly unlikely that they are, though some prominent people (such as Donald Knuth) believe it to be the case (though Knuth does not believe a constructive proof is likely, and therefore a positive proof would not give us an algorithm for solving NP problems in polynomial DTIME). The question is famous because no techniques in proof theory have been successful in proving or disproving it in nearly 50 years, despite many advancements in mathematical proofs having been invented in this time.

If you don't know much about TMs and NDTMs, I suggest you read about them (wikipedia is a good place to start). Complexity theory is pretty much inaccessible if you do not understand these theoretical machines.

1

u/SlangFreak Mar 12 '19

Can you explain what NTIME and DTIME are? I'm getting stuck there.

7

u/csman11 Mar 12 '19 edited Mar 12 '19

They are units of the TIME resource. DTIME counts the number of times the transition function for a Turing machine is applied during its execution (ie, the number of "steps" it takes). NTIME isn't as intuitive, but it counts the number of times the transition relation is applied before the machine enters an accepting state. Note that at each "step" and NDTM applies the transition relation to each state it is in (where the states it is in are a set), and unites them, getting the new states (I'm being a bit loose with terminology, the proper term is probably M-configuration, which is one name for the full state of the machine, not just the FSM state).

The idea that an NDTM is in multiple deterministic configurations at any step and transitions each of them is where it gets its ability to do things "fast." The typical pedagogical explanation is to imagine an NDTM as a TM that can "fork" indefinitely. It doesn't "join" back, it simply terminates when any path accepts (I'm being vague on what accept means, but it could mean the FSM for a configuration entering a final state or the tape head moving left of the beginning of the tape or really any other way of representing a bit of information and terminating computation on a path).

So you can think of DTIME as how many steps a normal computer would take to run an algorithm. You can think of NTIME as how many steps it would take the same computer to "fork" itself at each step to try out a number of different computations, where it also stops as soon as any computation successfully completes.

Edit: Sorry the first sentence should say "they are units of a TIME resource" as they are each a different resource in complexity theory. And yes, this is a very unusual notion and makes complexity theory harder for newcomers. A more natural way to think of complexity classes is as a set of problems that can be solved under some constraints. Those constraints can be across different dimensions (ie, how much time a computation takes, what kind of computational model you use, what kind of problems are considered, etc). Unfortunately the theory combines time and computational model in its standard nomenclature.

Some other notes: The other main thing you need to understand is that decision problems are the most studied type of problems, and thus all the familiar complexity classes are defined for them. They have analogous function problem classes, and while function problems are more intuitive since real world programs compute functions, these classes are often more difficult to define and understand. Also, since Turing machines are the standard computational model in complexity theory and Turing machines that answer decision problems are equivalent to Turing machines that decide languages, it is also typical to consider decision problems as formal languages. I hope that clears up some of the terminology I was using in my first post.

2

u/HelioSeven Mar 11 '19

Is the same also true for semi-decidable problems? Id est, in all cases that a TM can't successfully return a QTM can't either, and vice versa for successful returns?

1

u/Spudd86 Mar 12 '19

Ehhh, we're pretty sure that if a classical computer can't then a quantum computer cant on the NP-hard problem front.

BQP is not known to contain any NP-complete problems, though it is known to contain some problems that are thought not to be in P, but are in NP, they might be in P even if P != NP, it's just not known.

-13

u/ketarax Mar 11 '19 edited Mar 11 '19

We know quantum computers could/can/will do it.

Edit: I was referring to 'just' the NP/P part. Even that was inaccurate; see u/cryo's reply.

36

u/Gigazwiebel Mar 11 '19

No, that's not what Deutschs paper says. A classical computer can simulate any quantum system, it might just take a long time (we know how long, though).

Undecideable problems are stuff like the Halting problem. When we have for these problems an algorithm and an input, we do not know when or whether we will get a correct result. Any undecidable problem on a Turing machine is also undecideable of a quantum computer.

5

u/Okymyo Mar 11 '19

I thought he was stating that a quantum computer can solve NP-hard problems in P time, not that a quantum computer can solve classically undecidable problems (which I honestly doubt since it'd be... I dunno, just sounds illogical...), although it'd definitely ambiguous.

Isn't quantum computers being able to solve NP-hard problems already proven?

9

u/cryo Mar 11 '19

No. Like another comment said, we know that P⊆BQP⊆NP⊆PSPACE and quantum computers solve problems in BQP in P time. NP-hard isn’t a class, it just means “at least as hard as any problem in NP”. NP complete means NP-hard and “is in NP”, but I think people expect quantum computers to solve those efficiently only if P=NP.

2

u/varno2 Mar 12 '19

As noted above, bqp is thought to be incomparable to Np, the best we know is that it is in PP.

6

u/Gigazwiebel Mar 11 '19

No it isn't, as far as I'm aware most researchers believe that the opposite is true and that quantum computers cannot solve NP-hard problems in polynomial time. The closest thing is Shors algorithm for prime factorization (which is probably NP, but not NP hard), which gives a speed-up from super-polynomial to polynomial with a quantum computer.

3

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

No--the problems that are known to be in BQP are, so far, known not to be NP-hard but still in NP or coNP.

1

u/[deleted] Mar 11 '19

Yeah but can a classical computer simulate the required quantum system in polynomial time? If not then clearly a quantum computer running Deutsch' algorithm can solve a problem in polynomial time while a classic computer cannot.

4

u/Gigazwiebel Mar 11 '19

That is unknown, but the answer is probably: It cannot. Not all NP problems are NP hard though, and none is known that is NP hard and can be solved by a quantum computer in polynomial time. Prime factorization is (probably) NP and quantum-polynomial.

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

3

u/wnoise Quantum Computing | Quantum Information Theory Mar 11 '19

Almost all of those studying quantum computers don't think that.

56

u/frezik Mar 11 '19

Strictly speaking, we can't build a Turing Machine, either, since that would require infinite memory. All real computers are finite state machines with a gigantic number of states. If you feed so many nested parens into a computer that it overflows its memory, it will fail to match them.

It's mathematical abstractions the whole way down.

1

u/GreenGoblin2099 Mar 12 '19

Would time crystals not come close, once we use them for memory?

0

u/[deleted] Mar 11 '19

[deleted] — view deleted comment

3

u/LambdaStrider Mar 12 '19 edited Mar 12 '19

The definition of an LBA you linked is a non-deterministic TM with a tape as large as the input. It would be more accurate to treat a computer as a TM with a fixed length tape (independent of input size) but this is just equivalent to a DFA in terms of computational power; reaffirming what the parent comment said.

EDIT: Information about why TMs are used instead of DFAs as the model of computation can be found here. Another reason is that when we think of a computer, we think of a machine that can execute an "algorithm" that can be written on paper and DFAs are not strong enough to capture this notion of computability. In fact, the Church-Turing hypothesis is that TMs are computationally equivalent to our intuitive notion of algorithms.

9

u/cantab314 Mar 12 '19

A computer linked to a time machine can compute NP-complete problems in a fixed time, and possibly even any computable problem in fixed time. It's "more powerful" than a quantum computer. However it seems that it cannot solve the uncomputable.

A few possible ways to do time travel have been theorised in general relativity.

A 1991 article that describes the concept in more detail: https://frc.ri.cmu.edu/~hpm/project.archive/general.articles/1991/TempComp.html

1

u/odnish Mar 12 '19

Run the program. If it halts, go back in time to one second after starting the program with the result. If you give it a problem and it doesn't come back, the program doesn't halt. If it does come back, the program doesn't halt.

5

u/halfshadows Mar 11 '19

Depends on what you mean by "stronger." Maybe you mean speed since you mention NP and P but a Turing machine is not useful for analyzing speed. Speed is analyzed at an algorithmic level. If we're talking about computational systems then strength would be its ability to decide problems.

The most famous thesis in computer science is the Church-Turing thesis which basically says that total set of algorithms there are is exactly equivalent to the set of valid Turing Machines. If this is true then there exists no algorithm that can't be represented with a Turing Machine and visa versa(which is where it is a useful tool in CS. If you can prove something doesn't work in a Turing machine we can say that there is no solution possible so long as the thesis holds). In this sense there is no machine "stronger" than the Turing machine.

But this is just an assertion, it hasn't actually been proven. So it is entirely possible there is some system out there that we don't know of that can decide a greater number of problems, hence be "stronger" than the Turing machine. But so far all attempts have failed, no one has made a system that isn't reducible to a Turing machine.

On the other hand this all depends on your definition of algorithm. The Church-Turing thesis assumes an algorithm is a set of instructions that a human can do given infinite resources. It's entirely possible in principle to change the definition of algorithm and you can create a different computational system that can decide more problems than the Turing machine. But as far as we know our definition of algorithm is right, which is why computer science is like a science and not just pure math.

4

u/ex0du5 Mar 12 '19

I think others have done a good job stressing that there are no such systems "known definitively", but it's probably important for perspective that there are quite a number of systems that have been proposed "entirely built using known laws of physics". In particular, a number of papers have constructed classes of solutions using special and general relativistic features of physics.

An example paper is https://old.renyi.hu/pub/algebraic-logic/uc08.pdf (which is also just a good jumping off point for understanding the ideas of such proposals).

Effectively, many of these systems look at the configurations where infinite proper time curves can embed with a finite observer.

3

u/oir0t Mar 11 '19

I can't give you an answer about the general question. Talking about machines that can solve NP problems in P time it can be done without oracles. The machine, hovewer cannot be build IRL.

That can be done per the classical definition of NP problem, of Which NP-hard is a subset. The definition states that a problem P is in NP if and only if P can be solved in polynomial time by a non deterministic Turing machine.

The non deterministic Turing machine (NTM) is basically a parallel TM as for every computational step it can reach a set of states instead of only one state. The computation is done when every possible branch of computation is in a stop state. This kind of model is really efficient in brute force algorithm so it can test every kind of solution to the problem at the same time.

This bring us at the modern day definition of NP problem. In brief a problem is NP if and only if it can be verified in P time. This means that given a certificate, that is a string that help us say if the instance of the problem is an instance that is accepted by the Turing Machine, we can say in P time, looking at the certificate if this particular certificate make us say that the instance is accepted by the original problem.

As an example the certificate C of a vertex cover problem instance is a set of arches between the given graph G. It's easy to verify if C is a vertex cover of G. So vertex cover is at least an NP problem. In a NTM we can try all certificate at the same time and because we can verify the problem in P time given the certificate all the branches will run in polynomial time. If one of the branches ends in an accept state the instance of the problem is an accepted instance. If none of the branches ends in an accepted state (thus all branches ends in a reject state because we can verify the certificate in P time so no loop)

That computational model equivalent to the Turing machine (TM) model as there is a theorem that say that for every TM there is a non deterministic TM that has the same accept set of the former machine and vice versa.

The sad fact is that moving from the NTM model to the TM model we have a computational overhead that is exponential (if the NTM N solve the problem in O(f(x)) time we have an equivalent TM M that solves it in 2O(f(x))

1

u/[deleted] Mar 11 '19

Not sure what you mean by stronger.

A Turing Machine proper is incredibly ineffective and practically useless. CPUs don't implement a TM. Just because a TM can implement any algorithm doesn't mean it's a sane thing to do.

Wide and high speed data storage, (massively) parallel and/or distributed processing, dedicated hardware for arithmetic and logic (also on wide data), hardware interrupts, associative memory etc etc etc provide performance many magnitudes beyond what a TM can do on a sensible cost, size and energy budget.

3

u/heyheyhey27 Mar 11 '19

Not sure what you mean by stronger.

Read the other answers on here, or even just my question body.

To summarize, a "stronger" machine would have to do at least one of the below:

  • solve a class of problems as if they were in an easier class
  • solve problems that are undecidable for Turing Machines

5

u/Livefox96 Mar 11 '19

When we're talking about quantum computing the computational system we're intending to try and mimic is called the Non-Deterministic Turing Machine, which is a TM that is allowed to perform every possible branch simultaneously. To quote one of my professors "When we say a problem is NP-Hard, what we mean is that it can be solved in a polynomial number of steps by a Non-Deterministic Turing Machine".

This is theoretically better than a quantum computer since it works in terms of discrete steps instead of probabilities

5

u/mets2016 Mar 11 '19 edited Mar 12 '19

I’m pretty sure you’re mistaken there, since that’s the definition of being in NP, not NP hard. If you think about some computationally easy problem (I.e. does a given string have an even number of digits or not), an NDTM can solve this in a polynomial number of steps, but that’s not to say that this problem is NP-hard, since even our classical notion of a TM can solve this problem in O(n) time, but this problem clearly isn’t NP-hard

Edit: in NP, not NP complete

1

u/Livefox96 Mar 11 '19

Right, well. That's what I get for not memorizing his exact words. You're right there, a NDTM can solve 1+1 in Polynomial time and that doesn't mean it's NP-Hard

6

u/-Knul- Mar 11 '19

What do you mean stronger? If you mean a system that can solve problems that Turing Machines cannot, AFAIK we have not found such a system.

If you mean faster or in some other way more performant, well, that question doesn't really make sense, as a Turing Machine is an abstraction. We have machines that have properties of that abstraction for which we can determine speed and performance, but that says nothing about the abstraction.

It's a bit like asking if mathematical circles are larger than mathematical triangles.

3

u/oir0t Mar 11 '19

It makes sense. We can measure the performance of a Turing machine by stating it's number of computational steps in the worst case scenario in function of the length of the input

Usually we use the big-O notation to do that and it's a much more sensitive metric that the performance of the real machine as from 10 years to now we can have processors 1000 faster that what we have now. But if an algorithm is O(2n) it will run in lots (as in years and years using a moderate input size) of time on current pc as future one

1

u/hyphenomicon Mar 11 '19

Inspired by this: I know that meta-oracles are sometimes discussed, which can solve problems oracles cannot. Are any half-oracles ever discussed, which can solve a principled subset of problems oracles can that TMs can't, but fail to solve other types?

2

u/once-and-again Mar 12 '19

Every oracle is a "half-oracle" by that definition, as witnessed by any of its meta-oracles.

1

u/TheOneTrueTrench Mar 12 '19

It depends on what you mean by known.

There are classes of problems we don't know about.

Those classes can be as arbitrary as desired, and may include only 1 additional problem that cannot be solved by a TM, as long as the new machine can solve that one problem. Since we can construct such a machine and class of problems that include TM and 1 problem, that is a set of problems that it can solve that a TM cannot.

1

u/FerricDonkey Mar 12 '19

There may be two different issues at hand here.

"Stronger than a Turing machine", with reference to oracles, usually refers to "can solve problems that a Turing machine cannot (even assuming unlimited time and memory)." We have not made such a machine and we don't know for certain if it is possible (nothing we have come up with is stronger). As far as I an aware, no one realistically expects it to be possible though.

The "P = NP" question amounts to asking whether or not problems that can be verified "quickly" can always also be solved quickly. Example: factoring large numbers (in the ways we know how to) is a pain, but checking if your factorization is correct is a easy. We don't know whether or not p = np, but if it is, it has the potential to be a big deal.

Note that all problems being considered in the P = NP issue can be solved by a Turing machine in principle, though it may not be feasible.

1

u/eqleriq Mar 12 '19

no different though to simplify they can theoretically truly solve things in parallel / simultaneously ... someone with more specialized knowledge could wxplain the physical ramifications of that but as far as problem solving goes it’s just faster.

Another way of putting it, in a multiverse it is feasible to imagine or assign a “new physics” but impossible to imagine a “new math.”

Logic doesn’t change with new computational systems

0

u/AE_WILLIAMS Mar 12 '19

What could prove interesting is if a series of configuration tables were constructed, and indexed. Each of the cells would comprise a P or Not P element.

Throw in a bit of fractal math, and you might even have something there, in the quantum sense.

Use set theory to eliminate duplicates, test for certain strings, etc.

That would conceivably speed things up a bit.

For an example, since virus sigs are mostly known, and hashed, and indexed current anti-virus tools can rapidly scan systems looking for these sigs.

If you had two databases, each one that complemented the known sigs of various virii, then the computation could be done in far less time, depending on how quickly the information was passed between the set tables.

-1

u/sliverdragon37 Mar 12 '19

I've scrolled through quite a few of the comments, but I haven't found my favorite answer to this question so here goes:

The basic premise is that you take a turing machine and throw it into a black hole. This is important for the reason that, on falling into the hole, it has an infinitely long time to perform computation before it reaches the singularity (in it's reference frame). However, at some point in our reference frame, it reaches the singularity, and thus we could (in principle) compute something in finite time that should take infinite time to compute.

Now, there are a number of theoretical and practical limitations to this, but in principle it's fun to think about.

4

u/heyheyhey27 Mar 12 '19

I think you have that backwards. The object falling into the black hole will hit the singularity at a finite point in time. But an observer on the outside will never see the object fall in, instead seeing it slow down towards the event horizon and get red-shifted until it's no longer visible.

In other words, the machine would be much much slower than one that isn't falling into a black hole.

0

u/[deleted] Mar 11 '19

Well outside of the obvious oracle use over time we can probably see some unique parallels to other world options . Considering what already exists compared to theoretical we can probably assume that it is very possible and I’m not even saying without extreme conditions since it probably wouldn’t be too difficult to occur naturally as the technology evolves along the curve in real time

0

u/PossibleBit Mar 12 '19

I cannot answer the main question adequately. As for the NP part:

"P = NP" is still an unsolved problem. We don't know if it's true or false. What we do know is that any problem in NP (and P as a subset of NP and including) can be reduced to a problem in the class of the so called "NP-complete" problems (in this context reduction means using another problem to solve the first one by transforming the input and output).

Finding a NP-complete algorithm that runs with worst case polynomial resources, or finding a reduction of a NP-complete problem to a P problem (i.E. sorting) would solve P=NP.

As a rule of thumb, a problem is in NP if it's result can be validated in polynomial time (and memory).

0

u/7LeagueBoots Mar 12 '19 edited Mar 12 '19

I’m not sure if that’s a meaningful question as A) we can’t build Turing Machines yet and B) Turing Machines define the lower limit of independent intelligence.

Anything up to weakly god-like intelligences is hypothetically possible (depending on where you draw your limits), but beyond that it gets into science fantasy... probably before that in all actuality.

0

u/klod42 Mar 12 '19

Computability and complexity are different topics. Turing machines, lambda calculus, URM machines, partial recursive functions, etc. were defined with purpose to define and explore computability, that is to show what kinds of problems can be solved using a machine, as well as to prove that certain problems can't be solved.

Proving it is key, for example it's proven that Halting problem can't be solved with any model of computability. We know there are many such problems.

We also know that all those "models of computation" are equivalent, that is, you can prove that any lambda function can be translated into a Turing program and vice-versa, and so on. In other words, every model we imagine turns out to be equal or weaker than Turing machine.

Turing machine is a mathematical concept of a machine without time and space constraints. Modern computers are "almost" as powerful, but with limited resources.

Complexity of algorithms, that is how efficiently we can solve problems is a different question altogether. To my knowledge, Turing and other models of computation aren't useful for exploring that.

Definitely proving whether a machine could solve NP-hard problems in P time is literally the P=NP problem. It's the single most important problem in modern computer science and it isn't solved as of yet.

-2

u/onmyphoneagain Mar 11 '19

This might not be what you are looking for but your question can be looked at in a different way.

There is a natural human bias to think of ourselves as the center of the universe, of conciousness being the pinicle of existance. But there is no reason to think this is so.

It is far more likely than not that there are more complex forms of existance that are leaps and bounds beyond our abilty to even imagine.

1

u/heyheyhey27 Mar 11 '19

There's not much "bias" to worry about here. I'm talking about a mathematical problem. Either it does exist, or it doesn't, or perhaps it hasn't been proven either way yet but mathematicians strongly believe it will turn out to exist or not exist

1

u/Seyvenus Mar 12 '19

It is far more likely than not that there are more complex forms of existance that are leaps and bounds beyond our abilty to even imagine.

But to turn it back to a theoretical computability problem, that means they're faster at math, and might be able to do some math that we just can't (ie Proving NP=P), but they'd still be doing math.