Qubit Magic: Creating Mythical Creatures with Quantum Computing | by Kory Becker | Sep, 2023


TUTORIAL

Generating beautiful images with qubits and large language models.

A mythical creature with the quantum state vector [1/√2 e^(π/2)i 1/√2]. Source: Stable Diffusion.

Think about the nature of a single qubit. It may not appear all that magnificent at first glance.

In fact, it may seem that there aren’t many interesting things that just one qubit can be used for.

However, with a little creativity, we can do a lot of impressive feats. One of these includes the fascinating ability to generate images, music, and in this article— mythical creatures!

Visualizing a qubit may seem like a fairly abstract idea. After all, qubits are on the microscopic level, making them difficult to grasp.

However, we can leverage the amazing properties of qubits to visualize them as data in imaginative and beautiful ways.

One such method is by leveraging the unique properties of a qubit in order to generate descriptive attributes that can be used for the creation of images, sound, and much more.

Quantum computing provides the ability for a qubit to represent two values simultaneously. This is a property called superposition.

When a qubit is in superposition, it can represent both the values zero and one — at the same time. This allows for quadratic and even exponential increases in calculations.

When a qubit is in superposition, it holds distinct properties for its magnitude and phase. These refer to the spin on the qubit, which also corresponds to its likelihood of measuring as a 0 or 1.

Visualizing a q-sphere with a high probability (83%) of measuring as 1. Source: Grokking the Bloch Sphere.

We can extract these properties from the qubit and decode them into descriptive textual attributes, which can then be used to generate images through large language models, such as StableDiffusion, Huggingface, or DALL-E.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

en_USEnglish