sneakyweasel / quintessence

MIT IQuHack 2023 Hackathon
MIT License
4 stars 1 forks source link

Quintessence

This is an image

MIT IQuHack 2023 Hackathon

IonQ challenge

Landing page: https://ionq.com/

To recap, for this challenge, you must use a quantum computer to generate something new. Some ideas:

Quantum haze

We are using a number preserving quantum walk search algorithm running on IonQ (other backends can be included) to output results of a graph traversal algorithm which represents the scattered journey of our main character, Mr. Quanta, and how he tries to figure out what happened to him during his incoherent rambling through QuantaLand. This output will be fed back into a transformers AI model and then to a stable diffusion AI model to generate a exciting dynamic storyline with associated graphics. For a more in depth discussion of the applied circuit, see the following file.

Example Result

rose

Mr. Quanta awoke in a rooftop garden, surrounded by lush foliage and vibrant blooms. The sun shone down on him, warming his skin and casting a golden hue on the world around him. He felt a sense of peace and tranquility, and he was filled with a sense of wonder as he looked around. He had no idea how he had gotten there, but he was determined to find out.

generated Image

Docker

To automatically install and run the backend and frontend you can run:

docker compose up

Backend

Install and run

We provide a pipenv file to install all the python dependencies. Running the backend server will make it available at: http://localhost:5000/

cd backend
pipenv install
pipenv shell
python server.py

API keys

OPENAI_API_KEY = "123456"
IONQ_API_KEY = "123456"

Frontend

Running the frontend client will make it available at: http://localhost:8080/ Open your browser and go this this URL to start the simulation.

cd frontend
yarn install
yarn serve

Team members

Todos