Lably
Skip to content

Deutsch–Jozsa algorithm

Deterministic quantum algorithm

  • 5 min read
  • 6 chapters

Related on Lably

Through Domain of a function and Determinism

The Deutsch–Jozsa problem is specifically designed to be easy for a quantum algorithm and hard for any deterministic classical algorithm. It is a black box problem that can be solved efficiently by a quantum computer with no error, whereas a deterministic classical computer would need an exponential number of queries to the black box to solve the problem. More formally, it yields an oracle relative to which EQP, the class of problems that can be solved exactly in polynomial time on a quantum computer, and P are different.

Since the problem is easy to solve on a probabilistic classical computer, it does not yield an oracle separation with BPP, the class of problems that can be solved with bounded error in polynomial time on a probabilistic classical computer. Simon's problem is an example of a problem that yields an oracle separation between BQP and BPP.

Problem statement

In the Deutsch–Jozsa problem, we are given a black box quantum computer known as an oracle that implements some function:

f:{0,1}n→{0,1}

The function takes n-bit binary values as input and produces either a 0 or a 1 as output for each such value. We are promised that the function is either constant (0 on all inputs or 1 on all inputs) or balanced (1 for exactly half of the input domain and 0 for the other half). The task then is to determine if f is constant or balanced by using the oracle.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication