Code Monkey home page Code Monkey logo

qr64's Introduction

QR64 - Quantum Simulator for Rust (WIP)

QR64 is an experimental quantum computing simulator for the Rust. This code was adapted from dakk's qc64 and Coding Nexus

Creating a Bell State in NodeJS

Features

  • Simulate operations of various quantum gates including Pauli-X, Pauli-Y, Pauli-Z, Hadamard, CNOT, and SWAP on a two-qubit system.

How it works

Starting from the initial state |00>, the simulator can apply various quantum gates to manipulate the state of the two-qubit system. This allows for the simulation of various quantum computing concepts!

Gate Sequences and Outputs

The simulator supports various gate sequences, and the measurement results will vary based on the gate sequence used. Here are some examples:

Example 1

Gate Sequence: x0,x1,y0,y1,z0,z1,h0,h1,cx,sw

Measurement Results:

Quantum State Measurement Count Output
00 5 QQQQQ
01 0
10 0
11 23 QQQQQQQQQQQQQQQQQQQQQ

Example 2

Gate Sequence: h0,h1,h0,h1,h0,h1

Measurement Results:

Quantum State Measurement Count Output
00 14 QQQQQQQQQQQQQ
01 0
10 0
11 14 QQQQQQQQQQQQQ

Contributions

Contributions to QR64 are welcome! Feel free to create a pull request or open an issue if you have ideas for improvements or spot any bugs.

License

QR64 is released under MIT License.

qr64's People

Contributors

anharhussainmiah avatar

Watchers

 avatar

qr64's Issues

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.