The Halting Problem and the Impossible Photocopier

Epistemic status: the halting problem may actually still hold for quantum computers, I have no idea. I’m mostly interested in pointing out the sneakiness of assumptions.

The Halting Problem is the following: imagine some class of algorithms . Can we have an algorithm which takes as inputs a description of another algorithm and an input for that algorithm, and outputs either , if halts or , if doesn’t.

The original solution (by Alan Turing): no by contradiction. Imagine we have a such an algorithm. Now imagine a reversing algorithm , which halts if given as an input, and runs forever if given as an input. Imagine also a copier algorithm , which duplicates the input (so , and always halts.

Now imagine we string these algorithms together, . What happens if we feed into ? Well , then refers to whether halts when given the input . So does halt when fed ? Think about this for a moment.

Imagine halts. Then , which is passed to , which runs forever.

Imagine doesn’t halt. Then , which is passed to , which halts.

So we have a paradox.

This works for any class of algorithm you can imagine, it’s a fantastically general proof which says nothing about the nature of the algorithms at hand.


Or does it!?

Note the hidden assumption. That and exist. What if they don’t?

For a string of bits, or a Turing machine (as the problem was originally posed) the existence of is trivial. But for a string of qubits, it isn’t. The no-cloning theorem states that “it is impossible to create an independent and identical copy of an arbitrary unknown quantum state”. So in fact the standard proof of the halting problem does not apply to quantum computers.

This is possibly the sneakiest assumption I’ve ever seen snuck into an argument! A proof which seems general to any algorithm class falls down because you can’t have a quantum photocopier!

I will repeat that I am not actually making a claim about quantum computers here. I have no idea if the Gödel’s Incompleteness-based proof holds. I am merely pointing out the sneakiness of this assumption.