Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.05 KB

Guess

This sample describe the possible scenario's that ultimately lead to the BB84 algorithm

Running the sample

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

The expected outcome on the console looks similar to this

Alice sent 0 and Bob received 0
Alice sent 0 and Bob received 1
Alice sent 0 and Bob received 0
Alice sent 0 and Bob received 0
Alice sent 0 and Bob received 1
Alice sent 0 and Bob received 1
Alice sent 0 and Bob received 1
Alice sent 0 and Bob received 1

The circuit that is used to generate this is shown below:

guess

What it is doing

This sample shows the different scenario's that can happen: Alice can apply a Hadamard gate, but she might decide not to do that. Hence, the eavesdropper doesn't know if she should apply a Hadamard gate or not.

You can learn more about this sample in Chapter 8 of Quantum Computing for Java Developers. It is discussed in 8.5.1: "Confusing Eve"