pu2wof / Visualizing-Quantum-Computing-using-fractals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:Creative Commons Attribution 4.0 International


Languages

Language:Jupyter Notebook 100.0%