Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QLOQ paper code

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

Install

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt

Perceval 1.2.2 supports Python 3.10–3.14.

Run

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" --noisy

An 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 1

Remote 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:belenos

sim:belenos is selected in exactly the same way. Use --samples, --iterations, and --runs to control the experiment size.

Preserved QPU data

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

About

Code for the QLOQ paper (rXiv:2411.03878)

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages