Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Deutsch–Jozsa algorithm
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Classical solution == For a conventional [[deterministic]] algorithm where <math>n</math> is the number of bits, <math>2^{n-1} + 1</math> evaluations of <math>f</math> will be required in the worst case. To prove that <math>f</math> 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 <math>k</math> evaluations of the function suffices to produce the correct answer with a high probability (failing with probability <math>\epsilon \leq 1/2^{k}</math> with <math>k \geq 1</math>). However, <math>k=2^{n-1} + 1</math> 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 <math>f</math>.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)