The repository for measurements and data analysis of SQIL @ EPFL
If you have already installed python 3.12 and poetry skip to step 6.
1. Get the right python
Install python > 3.12 from the official website (no, your anaconda is not enough)
During installation, make sure to select the option to add python to your PATH
2. Install pipx globally
Open a command prompt and run
pip install --user pipx
python -m pipx ensurepath- Install poetry globally
python -m pipx install poetry
python -m pipx ensurepathClose the prompt and open a new one.
You can now use poetry and pipx globally.
4. Install poetry shell
pip install poetry-plugin-shell5. Install ipython and jupyter
pip install jupyter ipykernel6. Install the required packages using poetry
Go to the sqil-experiments folder and run the following command to create a virtual environment that contains all the dependencies needed.
poetry install7. Install the pre-commit hooks If you are on windows you need to install git (https://git-scm.com/downloads) and add it to your windows PATH. After the installation open a new terminal.
poetry run pre-commit installThis will check if your python files are formatted correctly when you try to commit. If that's not the case the commit will be canceled and the files will be automatically formatted. Then you'll have to add and commit again the new files.
8. Start the virtual environment
poetry shellThe first time you might need to manually install qt bindings. They are required for plottr, but cannot be shipped with the package. Make sure to be in the poetry environment and run the following
pip install pyqt5To exit the virtual environment just use exit
- Create a folder where you'll store the measurement code and setup
- Copy the contents of
get_started/in your new folder
Navigate to ./setup and find the setup file that more closely resembles your
usecase, or create a new one.
Data storage
- Change
data_folder_nameto the name of your cooldown - If needed, update the database folder names
db_rootanddb_root_local
QPU
- Choose the right number of qubits
n_qubits - Make sure you're using the appropriate qubit class
- Choose initial qubit parameters reasonably close to the expected ones (optional)
Zurich Instruments
- Make sure
generate_zi_setupcontains the correct IDs and options
Other instruments
- Check all the IP addresses
- Choose the appropriate default values
- Make sure all the
variablebindings point to the right parameter
- Specify the relative path to the setup file you want to use in
config.yaml - Choose the desired log level (amount of information printed during measurements)
- Choose the sqil experiments poetry environment as your kernel for
measure.ipynb - Run measurements
- The first measurement will generate your QPU in the local db folder