bvviz is an environment which provides a user-friendly playground for running noisy quantum simulations and visualizing the Bernstein-Vazirani quantum algorithm.
To install bvviz, first download the source code to your local machine.
git clone https://github.com/chutommy/bvviz.git
cd bvviz/Use the open-source package manager conda to install all dependencies to a new environment.
conda env create -f condaenv/environment.yml -n bvviz -qTo perform simulations, activate the bvviz environment and initiate the server.
conda activate bvviz
make runNow, launch a web browser and navigate to localhost:8501.
In the configuration, you are free to customize the device of the simulation as you want. However, for best results it is recommended to use secret strings with a length of 4-12. If you wish to experiment with larger secret strings, keep in mind that the computational demand grows exponentially with increasing size.
To test that all parts of the code are working properly, run the respective make command.
make test-unitTo run UI tests, make sure the server is online (on port 8501). The testing suite will create a new session for testing purposes.
Shortly after initializating the test sequence, a new testing browser will be opened. Please do not intervene while it's running.
# skip if the server is already running
make run
# run in a new terminal
make test-ui
