Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quantum Art Generation for Educational Purposes #42

Open
quantum-kittens opened this issue Aug 28, 2021 · 9 comments
Open

Quantum Art Generation for Educational Purposes #42

quantum-kittens opened this issue Aug 28, 2021 · 9 comments

Comments

@quantum-kittens
Copy link

Description

I'm interested in creative, visual representations of quantum concepts/phenomena to engage students, industry professionals, and the general population.

I'd like to focus on quantum art for the moment. Sharing a preliminary example of bubble art generated by a quantum computer from a linguistic input. Each bubble's color corresponds to a measurement output and its size is proportional to that output's count, so this gives us a potential visual representation of quantum noise.

Here is "Live long and prosper" without noise, the output from an ideal quantum computer:

Here is "Live long and prosper" with noise:

There are more colors and bubbles, and there are multiple bubble sizes. Comparing the two images shows us the effect of quantum noise.

Here is the code, in case you are interested in taking a look, though please excuse any roughness! I'm sure there are more elegant ways to achieve this.

(This was inspired by James Wootton's Loading a game from a quantum computer, Qiskit Documentation: Building Noise Models, and Make use of noisy hardware: Building a noisy quantum random number generator, with some insightful remarks from Soham Pal.)

I'd like to explore more types of art, more quantum concepts, and different methods of art generation. No clear cut idea right now except to expand the above. Open to suggestions!

Mentor/s

Looking for a mentor!

Type of participant

Someone who enjoys creative projects, creating educational content, and who knows at least the basics of Qiskit and Python.

Number of participants

1-3

Deliverable

At least one proof of concept with long-term potential. Ideally, I'd eventually like to create a tool for the gen pop to play with, similar to AI art generators such as deepart.io.

Thanks for reading!

@mickahell
Copy link

Hi :) some months ago I started experiments to do something similar, also I did a survey about art and science, the survey is still on and I get ~80 results.

The final delivery is an online museum, the platform for the museum is already finish, only miss to finish experimenting.

If you want I can share with you my code and the result of the survey.
I also started to make a labbook about what I did and my results.

The experiments take time to run so I do them when I have plenty of time available (so not very often).

@quantum-kittens
Copy link
Author

@mickahell hi! :D

I'm definitely interested in seeing the results of the survey, thank you! I've actually been thinking about exploring some sort of online museum, so I would love to hear more about that as well, please. Ping me on Slack? I'm [at]RPS over there.

@quantumjim
Copy link

I could do some mentoring on this.

@mickahell
Copy link

@quantumjim , so I put what I sent to @quantum-kittens on slack here :

experiments : https://github.com/mickahell/quantum_experiments/tree/develop/qiskit/qfractals
platform : https://github.com/mickahell/xtraorbitals.xyz/tree/main/fractals_museum (do not mind about the Dockerfile, it's the old version before I migrated the code)

if you want to run the platform :

  • you need to install streamlit --> pip install streamlit
  • clone the repo, go in the xtraorbitals.xyz/fractals_museum/app/
  • run streamlit run app.py
  • open your browser at localhost:8501

explanation : chap0 & chap1

This is the first part of what I planned first, the next is to create qfractals by quantum effect to create uniq structure --> see here

@HuangJunye HuangJunye added the status: matched The project is matched and will not take any more mentees label Sep 9, 2021
@HuangJunye HuangJunye removed the status: matched The project is matched and will not take any more mentees label Oct 6, 2021
@HuangJunye
Copy link
Collaborator

@quantum-kittens Can you please upload your presentation here by the end of today? Thank you!

@quantum-kittens
Copy link
Author

Checkpoint 1 presentation attached.

For anyone who reads this: the last few slides are essentially frames of a gif, so have some fun rapidly clicking through them! 😀

#42 Quantum Art Generation for Educational Purposes.pdf

@quantum-kittens
Copy link
Author

Checkpoint 2:

We've got a cloud app!! That's our update. The app is up and running on Heroku, but we haven't released it yet as we need to comb through it a couple more times and tweak some things.

Here's a sneak peek! There are two ways to generate artwork. This shows the Preset Noise option, which creates a slideshow of art generated with preset levels of noise.

Before text input:
Preset screenshot

After text input:

app_preset_demo

Sorry for the low res gif--I promise the real thing isn't this fuzzy!

Bonus: Try :preloader: in Qiskit Slack, @quantumjim added a thing!

@HuangJunye
Copy link
Collaborator

@quantum-kittens Can you please upload your final presentation here?

@quantum-kittens
Copy link
Author

@HuangJunye Sorry I missed the tag. No slides, gave a live demo of the web app during the showcase.

Here's the web app: http://qartgen.herokuapp.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants