This repository contains code for generating music using quantum circuits. The project leverages quantum computing to create unique musical compositions by encoding musical notes and rhythms into quantum circuits.
To set up the environment and install the necessary dependencies, follow these steps:
-
Clone the repository:
git clone https://github.com/harshitIIITD/quantum-music-composer.git cd quantum-music-composer
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
To generate music using the provided Jupyter notebook, follow these steps:
-
Start Jupyter Notebook:
jupyter notebook
-
Open the
new.ipynb
notebook and run all the cells to generate a MIDI file with the composed music.
This project is licensed under the Apache License, Version 2.0. See the LICENSE file for more details.