Giter Site home page Giter Site logo

horaddrim / quantum-bell Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 5.0 33 KB

The magic of Quantum Entanglement! The goal of this project is to make both a Quantum Superposition and a Quantum Entanglement!

License: GNU General Public License v3.0

C# 100.00%
quantum-computing qsharp microsoft dotnet-core

quantum-bell's Introduction

Quantum Bell - The magic of Quantum Entanglement

The goal of this project is to make both a Quantum Superposition and a Quantum Entanglement!

It uses Q# and yeah, Quantum programming is not what you're thinking, it's really complex and we cannot do a web API with it... At least not by now! ๐Ÿ’–

So, how can I run a Quantum program in my machine?

It's pretty simple! You have to have the .NET Core SDK for you platform, and maybe, VSCode can help, because it's the only editor to support Q# nowadays, but it's not mandatory! After getting this guys, you can clone the Microsoft's Quantum Development Kit sample, to make sure your machine supports Qubits' operations and that your .NET Core is ready to run Q#, you can simply run git clone https://github.com/Microsoft/Quantum.git, you can enter the Quantum/Samples/Teleportation folder, (with something like a cd Quantum/Samples/Teleportation),

  • TIP: If you open this project with the VSCode text editor, you'll be prompted to install the Q# extension, it's pretty amazing so I recommend it,

And them, simply run dotnet run to see the magic, if everything goes fine, you're done!

And to run this guy right here, you can just run git clone https://github.com/Horaddrim/quantum-bell, enter the folder -> cd quantum-bell, and run dotnet run! I think it will be more amazing if you see the source code in the Bell.qs file ๐Ÿ˜‰

So what is happening? I just see a bunch of numbers with no sense at all!

Image of the code running

It was a simple example of two of my favorite concepts in quantum mechanics! The first one is the Quantum Superposition and the other one is Quantum Entanglement! Inside the file Bell.qs I'll explain the how to do this, but in concept, I'll make a qubit be either in the 0 and in the 1 state, and after that, I'll make two qubits entangled, so, whatever happen to one qubit happen to the other one! So, statically, in second 0 (0s in the image), and second 1 (1s), the results will ALWAYS BE 50/50 so, all the times there will be a qubit with state equals 1 and one with state 0, and this will happen all the time, but the agree result is just the check, to see if one of the qubits is equal to the another after I set one of them to a random state, the other one is been set too, so, if you ever get the agree output coming of different from 1000, for real, it's something wrong, because you've just break the quantum mechanics laws.

quantum-bell's People

Contributors

horaddrim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.