This is the minimal code needed to run the balanced QLOQ VQE experiment and plot the preserved QPU result from Altair (now Belenos). This is the code the paper Quantum circuit compression using qubit logic on qudits (https://arxiv.org/abs/2411.03878).
Authors: Liam Lysaght (main) and Pierre-Emmanuel Emeriau
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txtPerceval 1.2.2 supports Python 3.10–3.14.
A quick deterministic local check:
python "VQE QPU and Sims/VQE for QPU.py"The same circuit with the source noise used in the paper (random circuit evaluation):
python "VQE QPU and Sims/VQE for QPU.py" --noisyAn optimization run is enabled explicitly (actually optimize circuit parameters, repeat for number of desired runs):
python "VQE QPU and Sims/VQE for QPU.py" \
--paper --noisy --runs 1Remote runs read the credential from the environment:
export QUANDELA_CLOUD_TOKEN="your token"
python "VQE QPU and Sims/VQE for QPU.py" \
--paper --backend qpu:belenossim:belenos is selected in exactly the same way. Use --samples,
--iterations, and --runs to control the experiment size.
Plot and verify the original Altair run:
python "VQE QPU and Sims/VQE QPU Graph Generator.py"The script checks the data before loading it. Its SHA-256 is:
202e93b8ab3b1277897d1c2ff633ef7139f50a3e2eb0325a93df3ccc282719f5