Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deutsch-Jozsa algorithm

When I was reading about quantum algorithms I faced the Deutsch-Jozsa algorithm, I see that if we want to solve that problem in a non-quantum algorithm, our algorithm would have exponential time complexity. Now I want to know what is the time complexity of Deutsch-Jozsa algorithm as a quantum algorithm on quantum computers?

like image 734
amir amir Avatar asked Mar 14 '26 17:03

amir amir


1 Answers

According to Wikipedia the complexity of the quantum algorithm is constant:

The Deutsch-Jozsa quantum algorithm produces an answer that is always correct with a single evaluation of f.

The algorithm itself are just some calculations on quantum states, without any iterations/... so complexity is O(1).

like image 115
sth Avatar answered Mar 17 '26 21:03

sth



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!