Code Monkey home page Code Monkey logo

quantumjava's Introduction

Quantum Computing samples in Java

This repository contains the source code for the samples discussed in Quantum Computing for Developers

Quantum Computing for Developers

It is based on the Strange Quantum Simulator, which provides an execution environment for quantum algorithms in Java.
Some samples use a UI, e.g. to visualize the quantum circuit. In that case, StrangeFX is used, which is a JavaFX-based framework that allows the visualisation of quantum circuits.

The samples in this repository correspond to the chapters in the book. Don't worry if you don't have the book, you can still run the samples.

Chapter 2: HelloWorld, Quantum Computing

HelloStrange

Chapter 3: Qubits and Quantum Gates, the basic units in Quantum Computing

Pauli X
Pauli X with user interface

Chapter 4: Superposition

Hadamard

Chapter 5: Entanglement

Classic coins
Quantum coins
CNot gate
Bell state

Chapter 6: Quantum networking, the basics

Classic network
No-cloning theorem
Quantum Teleportation
Quantum Repeater

Chapter 7: Our HelloWorld explained

RandomBit
RandomBit with debug
Quantum Adder
Quantum Adder with carry bit

Chapter 8: Secure Communication using quantum computing

A first (naive) approach
Applying 2 Hadamard gates
Using superposition
Guess the possibilities
QKD in Java

Chapter 9: Deutsch-Jozsa algorithm

Constant and balanced functions
Reversible gates
Quantum oracle
Applying a Quantum oracle
Deutsch algorithm
Deutsch Jozsa algorithm

Chapter 10: Grover's Search Algorithm

A classic search function
Quantum search
The algorithm behind Grover's search
The algorithm, step by step
The quantum Oracle in Grover's search

Chapter 11: Shor's Algorithm

A classic factoring approach
A classic implementation of a quantum factoringapproach
A quantum factoring approach

quantumjava's People

Contributors

dependabot[bot] avatar johanvos avatar kelumkps avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.