QuafelWeb is a web application to visualize and manage data from various quantum computing simulators with the help of Quafel.
Python 3.11.9 (for Quafel)- Poetry
- Docker
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
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.
- The web application can be accessed at
http://localhost:8000/
- The simulated hardware-profile is available via ssh at
localhost:2222
with the credentialsuser:password
- The simulated output-server is available via ssh at
localhost:2223
with the credentialsuser:password
If the docker-containers are running, the simulated hardware-profile can be used. The connection-string for it is test://hardware.profile:22
.
You can use this bash script to load an initial login email (after docker compose up
):
./add_email.sh <your-shibboleth-email>
Manually you have to do this: 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.
Access shell of webapp container
docker exec -it quafel-pse-2024-webapp.server-1 sh
Load login data
poetry run python manage.py loaddata login_data
Additionally you can load example data, execute
poetry run python manage.py loaddata example_data