Skip to content

cirKITers/Quafel-PSE-2024

Repository files navigation

QuafelWeb

QuafelWeb is a web application to visualize and manage data from various quantum computing simulators with the help of Quafel.

Set up and run the project

Project Dependencies

Finish Setting Up

After installing the dependencies and cloning the repository, run the following command in the root of the project to install the python dependencies and finish setting up:

poetry install

Run the project

To run the project, the following command must be executed:

docker-compose up --build

This will start all docker-containers, migrate the database and start the web application.

Additional information

  • The web application can be accessed at http://localhost:8000/
  • The simulated hardware-profile is available via ssh at localhost:2222 with the credentials user:password
  • The simulated output-server is available via ssh at localhost:2223 with the credentials user:password

Test the website

If the docker-containers are running, the simulated hardware-profile can be used. The connection-string for it is test://hardware.profile:22.

Loading data

To register an admin for the first time replace with the right email in quafelweb/simulation_data/fixtures/login_data.json. Then execute the following command in the webapp docker container to register this email in the data base.

poetry run python manage.py loaddata login_data

To load example data execute

poetry run python manage.py loaddata example_data