qiskit-advocate / qamp-fall-21

Qiskit advocate mentorship program (QAMP) fall 21 cohort (Sep - Dec 2021)
30 stars 6 forks source link

Quantum Art Generation for Educational Purposes #42

Open quantum-kittens opened 3 years ago

quantum-kittens commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

I could do some mentoring on this.

mickahell commented 3 years ago

@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 :

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 commented 2 years ago

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

quantum-kittens commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

quantum-kittens commented 2 years ago

@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/