Please read the following before using the code:
This repository contains the complete code used in the paper: 🔗 [https://arxiv.org/abs/2412.04252]
Clone the repository:
git clone https://github.com/your-username/Graph-State-Generation-Project.git
cd Graph-State-Generation-ProjectInstall required dependencies:
pip install networkx matplotlib numpy jupyternetworkxnumpymatplotlibjupyter- Standard Python libraries
.
├── calculate_gates_bell_paris_main.py # Core functions for data & plots
├── Run_statistics.ipynb # Main notebook to generate results
├── Bell_Pair_Sources_fix_P_ER.py # ER (Erdős–Rényi) simulations for Bell-pair sources
├── Bell_Pair_Sources_fix_C_BA.py # BA (Barabási–Albert) simulations for Bell-pair sources
├── Bell_Pair_vs_GHZ_Building_Block.py # Bell vs GHZ (star topology)
└── README.md
Ensure all files are in the same directory.
Run the notebook:
jupyter notebook Run_statistics.ipynbThis will:
- Generate all datasets except for Bell-pair sources.
- Reproduce figures from the paper
The main script:
calculate_gates_bell_paris_main.py
Provides functions to:
- Perform gate and Bell-pair analysis
- Generate plots used in the paper except for Bell-pair sources.
Perform Bell-pair sources analysis:
python Bell_Pair_Sources_fix_P_ER.pypython Bell_Pair_Sources_fix_C_BA.pyStudy of Bell pairs and GHZ states as building blocks in a star topology:
python Bell_Pair_vs_GHZ_Building_Block.pyIf you use this code in your research, please cite the following paper:
@misc{CKVL2024,
title={A resource- and computationally-efficient protocol for multipartite entanglement distribution in Bell-pair networks},
author={S. Siddardha Chelluri and Sumeet Khatri and Peter van Loock},
year={2025},
eprint={2412.04252},
archivePrefix={arXiv},
primaryClass={quant-ph},
url={https://arxiv.org/abs/2412.04252},
}Contributions, issues, and suggestions are welcome! Feel free to open a pull request or issue.