Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 807 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 807 Bytes

Deutsch Josza algoritm

This code demonstrates the Deutsch Jozsa algorithm

Running the sample

To run this application, simply run mvn clean javafx:run

The result of this application is similar to the output below

f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1
f = 1, val = 1

Also, the following quantum circuit is rendered:

deutschjozsa

What it is doing

This sample shows how the Deutsch Jozsa algorithm works.

You can learn more about this sample in Chapter 9 of Quantum Computing for Java Developers. It is discussed in 9.7: "Deutsch Jozsa algorithm".