Christopher K. Long and Crispin H. W. Barnes

The source code used in From virtual Z gates to virtual Z pulses  [1].

Online repositories

README file

README

From virtual Z gates to virtual Z pulses source code

DOI SWH

This repository contains the source code required to reproduce and plot the data presented in:

C. K. Long and C. H. W. Barnes, From virtual Z gates to virtual Z pulses, 2025. arXiv: 2509.13453 [quant-ph]. https://arxiv.org/abs/2509.13453.

Installation

The required Python packages can be installed by executing

pip install -r requirements.txt
pip install -e ./

in the root directory of this repository. To ensure reproducibility, all packages in requirements.txt are version pinned, and Python 3.13.5 should be used.

Downloading the data

The data for the article can be found at:

Long, C. K., & Barnes, C. H. W. (2025). From virtual Z gates to virtual Z pulses data [Data set]. Zenodo. https://doi.org/10.5281/zenodo.17113741

and can be downloaded to the correct directories for plotting by running

bash scripts/download_data_from_zenodo.sh

Reproducing the data

Alternatively, all the data can be collected and plotted by executing

python scripts/collect_and_plot_all_data.py

To only collect the data you can execute

python scripts/data_collection/collect_all_data.py

in the root directory of this repository. Alternatively, if you only wish to collect the data for Figure X in our article, then you can execute

# Replace X with the figure number
python scripts/data_collection/figure_X.py 

in the root directory of this repository.

Plotting the data

All the figures can be plotted from the collected data by executing

python scripts/plotting/plot_all_data.py

in the root directory of this repository. Alternatively, if you only wish to reproduce Figure X in our article then you can execute

# Replace X with the figure number
python scripts/plotting/figure_X.py 

in the root directory of this repository.

Archives

Releases from this repository are assigned DOIs and can be found at https://doi.org/10.5281/zenodo.17123422. The DOI for all releases is 10.5281/zenodo.17123422. Additionally, the releases are archived to https://archive.softwareheritage.org/swh:1:dir:e4eb839b33bbeaeb60395bd18a45477cc020a2d1.

Updates

This repository will only be updated to fix bugs that prevent reproducing the data presented in the article, to update citations, or if the article is updated. To ensure reproducibility of the article any bugs that are found that have impacted the data in the article will not be fixed unless our article is also updated.

Link to original

Repository files

Citation

Christopher K. Long and Crispin H. W. Barnes. From virtual Z gates to virtual Z pulses source code, (Zenodo, 2025), DOI: 10.5281/zenodo.17123422.

BibTeX

@software{long_2025_17149989,
    author       = {Long, Christopher K. and
                    Barnes, Crispin H. W.},
    title        = {From virtual Z gates to virtual Z pulses source code},
    month        = sep,
    year         = 2025,
    license = {Apache-2.0},
    publisher    = {Zenodo},
    doi          = {10.5281/zenodo.17123422},
    url          = {https://doi.org/10.5281/zenodo.17123422},
    swhid        = {swh:1:dir:71012dabd229ba80688d78cc92a9eb2e7466ba41
                    ;origin=https://doi.org/10.5281/zenodo.17123422;vi
                    sit=swh:1:snp:d68c9398eebea3a636270700575c870344c6
                    becb;anchor=swh:1:rel:474d0d7d3ebe4eac9701c3d9cf3b
                    9a28dc6f1647;path=Christopher-K-Long-From-virtual-
                    Z-gates-to-virtual-Z-pulses-source-code-0601c7b
                    },
}

Dependencies I authored

References

[1]
Christopher K. Long and Crispin H. W. Barnes. From virtual Z gates to virtual Z pulses, 2025, arXiv:2509.13453 [quant-ph]. ↩
[2]
Christopher K. Long, Crispin H. W. Barnes, and Normann Mertig. PySTE, (Zenodo, 2025–2026), DOI: 10.5281/zenodo.17116431. ↩

1 item under this folder.