Deutsch–Jozsa Algorithm

The Deutsch–Jozsa algorithm is a deterministic quantum algorithm proposed by David Deutsch and Richard Jozsa in 1992 with improvements by Richard Cleve, Artur Ekert, Chiara Macchiavello, and Michele Mosca in 1998.

Although of little practical use, it is one of the first examples of a quantum algorithm that is exponentially faster than any possible deterministic classical algorithm.

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 a 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:

Deutsch–Jozsa Algorithm 

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 Deutsch–Jozsa Algorithm  is constant or balanced by using the oracle.

Classical solution

For a conventional deterministic algorithm where Deutsch–Jozsa Algorithm  is the number of bits, Deutsch–Jozsa Algorithm  evaluations of Deutsch–Jozsa Algorithm  will be required in the worst case. To prove that Deutsch–Jozsa Algorithm  is constant, just over half the set of inputs must be evaluated and their outputs found to be identical (because the function is guaranteed to be either balanced or constant, not somewhere in between). The best case occurs where the function is balanced and the first two output values are different. For a conventional randomized algorithm, a constant Deutsch–Jozsa Algorithm  evaluations of the function suffices to produce the correct answer with a high probability (failing with probability Deutsch–Jozsa Algorithm  with Deutsch–Jozsa Algorithm ). However, Deutsch–Jozsa Algorithm  evaluations are still required if we want an answer that has no possibility of error. The Deutsch-Jozsa quantum algorithm produces an answer that is always correct with a single evaluation of Deutsch–Jozsa Algorithm .

History

The Deutsch–Jozsa algorithm generalizes earlier (1985) work by David Deutsch, which provided a solution for the simple case where Deutsch–Jozsa Algorithm .
Specifically, given a boolean function whose input is one bit, Deutsch–Jozsa Algorithm , is it constant?

The algorithm, as Deutsch had originally proposed it, was not deterministic. The algorithm was successful with a probability of one half. In 1992, Deutsch and Jozsa produced a deterministic algorithm which was generalized to a function which takes Deutsch–Jozsa Algorithm  bits for its input. Unlike Deutsch's algorithm, this algorithm required two function evaluations instead of only one.

Further improvements to the Deutsch–Jozsa algorithm were made by Cleve et al., resulting in an algorithm that is both deterministic and requires only a single query of Deutsch–Jozsa Algorithm . This algorithm is still referred to as Deutsch–Jozsa algorithm in honour of the groundbreaking techniques they employed.

Algorithm

For the Deutsch–Jozsa algorithm to work, the oracle computing Deutsch–Jozsa Algorithm  from Deutsch–Jozsa Algorithm  must be a quantum oracle which does not decohere Deutsch–Jozsa Algorithm . It also must not make a copy of Deutsch–Jozsa Algorithm , because that would violate the no cloning theorem.

Deutsch–Jozsa Algorithm 
Deutsch-Jozsa algorithm quantum circuit

The algorithm begins with the Deutsch–Jozsa Algorithm  bit state Deutsch–Jozsa Algorithm . That is, the first n bits are each in the state Deutsch–Jozsa Algorithm  and the final bit is Deutsch–Jozsa Algorithm . A Hadamard gate is applied to each bit to obtain the state

    Deutsch–Jozsa Algorithm ,

where Deutsch–Jozsa Algorithm  runs over all Deutsch–Jozsa Algorithm -bit strings. We have the function Deutsch–Jozsa Algorithm  implemented as a quantum oracle. The oracle maps its input state Deutsch–Jozsa Algorithm  to Deutsch–Jozsa Algorithm , where Deutsch–Jozsa Algorithm  denotes addition modulo 2. Applying the quantum oracle gives;

    Deutsch–Jozsa Algorithm .

For each Deutsch–Jozsa Algorithm  is either 0 or 1. Testing these two possibilities, we see the above state is equal to

    Deutsch–Jozsa Algorithm .

At this point the last qubit Deutsch–Jozsa Algorithm  may be ignored and the following remains:

    Deutsch–Jozsa Algorithm .

Next, we will have the qubit go through a Hadamard gate

    Deutsch–Jozsa Algorithm 

(Deutsch–Jozsa Algorithm  is the sum of the bitwise product, where Deutsch–Jozsa Algorithm  is addition modulo 2) over the first register to obtain

    Deutsch–Jozsa Algorithm 

From this, we can see that the probability for a state Deutsch–Jozsa Algorithm  to be measured is

    Deutsch–Jozsa Algorithm 

The probability of measuring Deutsch–Jozsa Algorithm , corresponding to Deutsch–Jozsa Algorithm , is

    Deutsch–Jozsa Algorithm 

which evaluates to 1 if Deutsch–Jozsa Algorithm  is constant (constructive interference) and 0 if Deutsch–Jozsa Algorithm  is balanced (destructive interference). In other words, the final measurement will be Deutsch–Jozsa Algorithm  (all zeros) if and only if Deutsch–Jozsa Algorithm  is constant and will yield some other state if Deutsch–Jozsa Algorithm  is balanced.

Deutsch's algorithm

Deutsch's algorithm is a special case of the general Deutsch–Jozsa algorithm where n = 1 in Deutsch–Jozsa Algorithm . We need to check the condition Deutsch–Jozsa Algorithm . It is equivalent to check Deutsch–Jozsa Algorithm  (where Deutsch–Jozsa Algorithm  is addition modulo 2, which can also be viewed as a quantum XOR gate implemented as a Controlled NOT gate), if zero, then Deutsch–Jozsa Algorithm  is constant, otherwise Deutsch–Jozsa Algorithm  is not constant.

We begin with the two-qubit state Deutsch–Jozsa Algorithm  and apply a Hadamard gate to each qubit. This yields

    Deutsch–Jozsa Algorithm 

We are given a quantum implementation of the function Deutsch–Jozsa Algorithm  that maps Deutsch–Jozsa Algorithm  to Deutsch–Jozsa Algorithm . Applying this function to our current state we obtain

    Deutsch–Jozsa Algorithm 
    Deutsch–Jozsa Algorithm 
    Deutsch–Jozsa Algorithm 

We ignore the last bit and the global phase and therefore have the state

    Deutsch–Jozsa Algorithm 

Applying a Hadamard gate to this state we have

    Deutsch–Jozsa Algorithm 
    Deutsch–Jozsa Algorithm 

Deutsch–Jozsa Algorithm  if and only if we measure Deutsch–Jozsa Algorithm  and Deutsch–Jozsa Algorithm  if and only if we measure Deutsch–Jozsa Algorithm . So with certainty we know whether Deutsch–Jozsa Algorithm  is constant or balanced.

See also

References

Tags:

Deutsch–Jozsa Algorithm Problem statementDeutsch–Jozsa Algorithm Classical solutionDeutsch–Jozsa Algorithm HistoryDeutsch–Jozsa Algorithm AlgorithmDeutsch–Jozsa Algorithm Deutschs algorithmDeutsch–Jozsa AlgorithmArtur EkertDavid DeutschDeterministic algorithmMichele MoscaQuantum algorithmRichard CleveRichard JozsaTime complexity

🔥 Trending searches on Wiki English:

Wiki FoundationKalki 2898 ADRussell WilsonRobert Pope (runner)Chet HolmgrenAnzac DayDream112023 NFL draftATLC (group)Drake Bell2024 Croatian parliamentary electionAdolf HitlerThe Jinx (miniseries)Russian invasion of UkraineCaleb WilliamsMamitha BaijuRaven-SymonéYouTubeNewJeansJessica GunningRoad House (2024 film)2024 North Macedonian presidential electionSherri MartelStellar BladeTerry HillKung Fu Panda 4Carol BurnettTimothée ChalametDev PatelYandexThe Three-Body Problem (novel)Eurovision Song Contest 2024Charles IIIJim HensonJurassic World DominionTaiwanSean CombsBrazilClinton–Lewinsky scandalLisa Marie PresleyAbraham LincolnRule 34Richard NixonTom Goodman-HillDakota FanningKanye WestLouis Mountbatten, 1st Earl Mountbatten of BurmaShou Zi ChewKilling EveRobert F. Kennedy Jr.George IIIToomaj SalehiRishi SunakSiren (2024 film)List of highest-grossing Malayalam filmsD. John SauerBhimaaIF (film)Angelina JolieEmma StoneNaslen K. Gafoor2024–25 UEFA Champions LeagueMark the EvangelistRedditEuropean UnionU.S. statePromising Young WomanNapoleonThe Ministry of Ungentlemanly Warfare2024 Indian general election in Tamil NaduGuy RitchieSunny LeoneDarwin BlanchWolfgang Amadeus MozartJohn F. KennedyXaviStripchatJames VI and I🡆 More