Coder Social home page Coder Social logo

pu2wof / visualizing-quantum-computing-using-fractals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wmazin/visualizing-quantum-computing-using-fractals

1.0 0.0 0.0 4.61 MB

License: Creative Commons Attribution 4.0 International

Jupyter Notebook 100.00%

visualizing-quantum-computing-using-fractals's Introduction

Visualizing Quantum Computing using fractals

Introduction
Quantum computing can be pretty abstract. As a result, it's rather challenging to get the imagination going when dealing with qubits, quantum circuits and quantum states. As people get started using quantum computing, one of the biggest challenges is visualizing the complex mathematics underlying quantum states. Typically, we rely on the Bloch sphere and Q-sphere. However, given the richness of the field of complex numbers, there are plenty of more interesting ways to represent quantum information.
You'll find two notebooks demonstrating how quantum computing can be visualized using fractals.
The 1-qubit notebook demonstrates this with one qubit in the ideal case, mimicking running on a fault-tolerant quantum computer with a simulator. Try it yourself, either go with the default quantum circuit or create your own 1-qubit quantum circuit and also see how the fractal looks after running on a real quantum computer!
The 2-qubit notebook makes it possible to create fractals that can be used to visualize two-qubit quantum circuits, showing how, e.g., quantum entanglement may look like a fractal. Of course, you may also use a real quantum computer to generate the fractal and compare with the simulated.

Read more about the project in the blog.


Getting started

  1. Upload the notebooks to the IBM Quantum Lab or install Qiskit locally
  2. Run the 1- or 2-qubit notebook with the default quantum circuit yielding both the ideal simulated fractal as well as the fractal generated after running on a real quantum computer.
    In the current version nice fractals may be achieved when either the 1-qubit quantum circuit statevector isn't on the axes of the Bloch sphere or you generate a 2-qubit quantum circuit involving all four computational basis states. Both can be checked in the notebooks.
    You may need to experiment with different gates, phases and circuits in order to obtain a circuit that generates a beautiful fractal.
  3. Get familiar with the tutorial for the IBM Quantum Composer.
  4. You can also choose to write the qiskit code and not use the Composer.

Acknowledgments
This project is in honor of my late professor, Erik Mosekilde, who inspired me with his persona and his teachings and works on chaos theory, bifurcations, fractals and Turing patterns.


License
Shield: CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

Contact
Wiktor Mazin

visualizing-quantum-computing-using-fractals's People

Contributors

wmazin avatar

Stargazers

 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.