Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 825 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 825 Bytes

RandomBit

This sample mainly demonstrates the rendering of a circuit using StrangeFX.

Running the sample

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

The expected outcome on the console looks like this:

Qubit[0]: 1
Qubit[1]: 1
Qubit[2]: 0
Qubit[3]: 1

The most important part of the sample though is the visualisation of the quantum circuit, as shown below: randombit

What it is doing

The main purpose of this sample is to explain how StrangeFX visualises a quantum circuit that you created using Strange.

You can learn more about this sample in Chapter 7 of Quantum Computing for Java Developers. It is discussed in 7.5.1: "Visualisation of circuits"