3

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?

Floern
  • 33,559
  • 24
  • 104
  • 119
amir amir
  • 3,375
  • 7
  • 26
  • 29

1 Answers1

4

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).

sth
  • 222,467
  • 53
  • 283
  • 367