An open API service indexing awesome lists of open source software.

https://github.com/vbelis/latent-ad-qml

Unsupervised anomaly detection in the latent space of high energy physics events with quantum machine learning.
https://github.com/vbelis/latent-ad-qml

anomaly-detection deep-learning particle-physics quantum-machine-learning unsupervised-learning

Last synced: 5 months ago
JSON representation

Unsupervised anomaly detection in the latent space of high energy physics events with quantum machine learning.

Awesome Lists containing this project

README

          

# Quantum anomaly detection in the latent space of proton collision events at the LHC

[![Journal - Link](https://img.shields.io/badge/Journal-Link-informational)](https://www.nature.com/articles/s42005-024-01811-6)
[![DOI](https://zenodo.org/badge/494404586.svg)](https://zenodo.org/badge/latestdoi/494404586)
[![Email: vasilis](https://img.shields.io/badge/email-vasileios.belis%40cern.ch-blue?style=flat-square&logo=minutemailer)](mailto:vasileios.belis@cern.ch)
[![Made at CERN!](https://img.shields.io/badge/CERN-QTI-lightseagreen)](https://quantum.cern/our-governance)
[![Code style: black](https://img.shields.io/badge/code%20style-black-black?style=flat-square&logo=black)](https://github.com/psf/black)
[![Python: version](https://img.shields.io/badge/python-3.8-blue?style=flat-square&logo=python)](https://www.python.org/downloads/)
[![License: version](https://img.shields.io/badge/license-MIT-purple?style=flat-square)](https://github.com/QML-HEP/ae_qml/blob/main/LICENSE)
[![Documentation Status](https://readthedocs.org/projects/latent-ad-qml/badge/?version=latest)](https://latent-ad-qml.readthedocs.io/en/latest/?badge=latest)

This repository has the code we developed for the paper:

Belis, V., Woźniak, K.A., Puljak, E. et al. Quantum anomaly detection in the latent space of proton collision events at the LHC. _Nature Communications Physics_ **7**, 334 (2024). https://doi.org/10.1038/s42005-024-01811-6

In this work, we investigate unsupervised quantum machine learning algorithms for anomaly detection tasks in particle physics data.
The `qad` package associated with this work was created for reproducibility of the results and ease-of-use in future studies.


Sublime's custom image

The figure above, taken from the paper, depicts the _quantum\-classical pipeline_ for detecting (anomalous) new-physics events in proton collisions at the LHC. Our strategy, implemented in `qad`, combines a data compression scheme with unsupervised quantum machine learning models to assist in scientific discovery at high energy physics experiments.

## Documentation
The documentation can be consulted in the readthedocs [page](https://latent-ad-qml.readthedocs.io/en/latest/).

## Citation
Please cite our work if you found it useful in your own research.
```
@article{Belis_2024,
title={Quantum anomaly detection in the latent space of proton collision events at the LHC},
volume={7},
ISSN={2399-3650},
DOI={10.1038/s42005-024-01811-6},
number={1},
journal={Communications Physics},
author={Belis, Vasilis and Woźniak, Kinga Anna and Puljak, Ema and Barkoutsos, Panagiotis and Dissertori, Günther and Grossi, Michele and Pierini, Maurizio and Reiter, Florentin and Tavernelli, Ivano and Vallecorsa, Sofia}, year={2024},
month=oct,
pages={334}
}
```

## How to install
The package can be installed with Python's `pip` package manager. We recommend installing the dependencies and the package within a dedicated environment. For instance, we use `conda` to create a `python` environment:
```
conda create -n my_env python=3.8
conda activate my_env
```
In this environment you can directly install `qad` by running:

```
pip install https://github.com/vbelis/latent-ad-qml/archive/main.zip
```
or by first cloning the repo locally and then installing the package:
```bash
git clone https://github.com/vbelis/latent-ad-qml.git
cd latent-ad-qml
pip install .
```
The installation is expected to take a couple of minutes.

## Usage
Examples on how to run the code and use `qad` to reproduce results and plots from the paper can be found in the [scripts](https://github.com/vbelis/latent-ad-qml/tree/main/scripts). Check also the corresponding documentation page.