sneakyweasel / quintessence

MIT IQuHack 2023 Hackathon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • If you want to use OpenAI prompts and DallE image generation you'll need to provide your own API keys as env variables in ai.py
OPENAI_API_KEY = "123456"
  • If you want to use IonQ as your quantum backend you'll need to provide your own API key as an env variable in quantum.py
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

  • Pass API keys as docker secrets
  • Deploy to AWS
  • Generate more interesting storylines
  • Provide better explanation of what we are doing
  • Display generated images from the storyline steps

About

MIT IQuHack 2023 Hackathon

License:MIT License


Languages

Language:Jupyter Notebook 94.6%Language:Vue 2.7%Language:Python 2.5%Language:Dockerfile 0.1%Language:HTML 0.1%Language:JavaScript 0.0%