Questions tagged [deutsch-jozsa-algorithm]
The Deutsch–Jozsa algorithm is a quantum algorithm, proposed by David Deutsch and Richard Jozsa in 1992. 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. It is also a deterministic algorithm, meaning that it always produces an answer, and that answer is always correct. (Wikipedia)
114 questions
2
votes
2
answers
54
views
Does Deutsch's algorithm show a query advantage, or is it due to the choice of oracle?
I'm learning Deutsch's algorithm and I want to check whether I'm understanding the query complexity claim correctly.
The standard story I keep seeing is: Deutsch's problem needs 2 queries classically ...
0
votes
0
answers
49
views
Revealing a function value irrespective of the initial qubit state?
I've been exploring my idea
Of using Hadamard then applying f(1)=1 always. Combined with unknown function. And then Hadamard again as output.
Formaly:
Suppose I have a classical Boolean function f: {0,...
0
votes
1
answer
90
views
Does applying a balanced function on a single qubit out of n and applying constant function on the remaining n-1 implements overall BALANCED function?
I am studying Deutsch-Josza Algorithm. Here's what I get for 2-qubit case.
$$
\begin{aligned}
|\psi_0\rangle &= |0\rangle\otimes |0\rangle \\
|\psi_1\rangle & = H|0\rangle \otimes H|0\rangle \\...
1
vote
1
answer
163
views
How do you apply the Hadamard function to a register of qubits in Q#?
I am learning Q# and am trying to create Deutsch's algorithm. My code seems to have an issue since I'm still learning. The code recognizes that line 3 contains an error. Can someone tell me what I am ...
1
vote
2
answers
295
views
Any way to go a step further from Deutsch algorithm and calculate the results of f(x) in parallel?
Deutsch-Josza algorithm, as a demonstration of the parallel computing power of quantum computing, calculates in one operation both values of a $(0,1) \mapsto (0,1)$ function $f(x)$. But it only ...
0
votes
1
answer
126
views
Cannot Find referance DeutschJozsa in __init__.py
I am new to quantum computing and Python. I tried to make a quantum simulation with qiskit, but I have some import issues that I can't solve, and I decided to ask it here.
I tried to import ...
2
votes
2
answers
154
views
Construction of $f(x) = x \pmod 2$ as an oracle function
I'm trying to conceptualise how one would implement an oracle function of f(x) = x in the context of the Deutsch-Josza Algorithm. So far I understand the basic idea of implementing trivial constant ...
0
votes
1
answer
83
views
Why is the X-Gate a constant function in the deutsch-josza algorithm?
I don't understand, why the X-Gate represents a constant function.
It flips 0 to 1 and 1 to 0, which represents a balanced function.
I don't understand this explanation from my professor:
-1
votes
1
answer
185
views
Does this quantum circuit reproduce the oracle in Deutsch's algorithm?
This seems to me a fine quantum oracle for the balanced one bit function $f(x)=x$, but putting it in Deutsch's algorithm circuit will give the result $|0\rangle$, i.e. the function is evaluated as ...
3
votes
3
answers
305
views
General Formula For Hadamard Gate on Superposition State
The general formula for Hadamard Gate $H$, is $$H|x\rangle = \Sigma_z(-1)^{xz}|z\rangle/\sqrt{2}\tag{1}\label{1}$$ for n gates in parallel $$H^{\otimes n}|x\rangle = \Sigma_z(-1)^{x.z}|z\rangle/\sqrt{...
3
votes
0
answers
78
views
Turning Deutsch-Josza into a continuous problem
I am wondering whether anyone has investigated if there is a notion of a continuous oracle. My starting off point is to consider the Deutsch-Josza problem, in which the oracle acts on the state in a ...
0
votes
1
answer
218
views
How is the oracle actually implemented for Deutsch-Jozsa algorithm? [duplicate]
In the quantum computation circuit for the Deutsch-Jozsa algorithm, it is said that $U_f$ oracle will affect certain specific operations on the qubits using $f(x)$ and finally will give the answer in ...
3
votes
2
answers
214
views
Time Complexity of Deustch Algorithm
The Deustch algorithm use an oracle, the quantum gate $U_f$
The first question is can we count the complexity of $U_f$ as one
if it is used once.
I mean since one computation of $U_f$ can't be ...
1
vote
0
answers
77
views
How does Chernoff's bound help to solve Exercise 6.4.2 in Kaye et al.'s textbook? [duplicate]
I was wondering if anyone could help me with this question, I'm kind of new to quantum computing in general. I understand the Deutsch Josza Algorithm, but I'm not really sure where to even begin with ...
1
vote
2
answers
272
views
Phase kickback without controlled operator
I have some doubts about the phase kickback trick when used in some algorithm.
Consider a quantum system with two qubits, and suppose we have a boolean oracle $U_f$. We know that if we put the second ...