Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Machine Learning Project

This repository is a research-oriented collection of experiments combining classical machine learning, time-series anomaly detection, and quantum machine learning. The work spans two main themes:

  • a classical and quantum generator/discriminator pipeline for synthetic data generation and handwritten digit experiments, built around PennyLane and PyTorch;
  • a TadGAN-based anomaly detection implementation for time-series datasets, using a GAN architecture for reconstruction and anomaly scoring.

The project is primarily implemented as Jupyter notebooks and Python scripts, with data folders and pre-trained model artifacts included for experimentation.

Repository overview

The project contains a mix of exploratory notebooks, dataset files, and a small training pipeline. It is designed to test ideas in quantum machine learning and anomaly detection rather than package a production-ready application.

Main components

1. Quantum GAN experiments

  • pennylane_qgan.ipynb explores a PennyLane-based quantum generator/discriminator pipeline for generating images similar to handwritten digits.
  • main.ipynb and main_owi.ipynb extend the research notebooks with additional data loading, processing, and classical/quantum modeling experiments.
  • qcircuit.jpeg depicts the quantum circuit used in the generator design.
  • config.toml contains example PennyLane/Qiskit configuration values for IonQ and IBMQ backends, with placeholders for API keys.

2. Time-series anomaly detection

  • TadGAN/ contains a PyTorch implementation of the TadGAN architecture for anomaly detection in time-series data.
  • TadGAN/main.py trains the encoder, decoder, and critics on a rolling-window dataset to learn normal signal behavior and detect deviations.
  • TadGAN/model.py defines the neural network components for the encoder, decoder, and critics.
  • TadGAN/anomaly_detection.py is part of the anomaly scoring workflow for evaluating reconstructed sequences and critic outputs.
  • UCR_Anomaly/ and TadGAN/UCR/ include anomaly benchmark datasets used in the experiments.

3. Included data and artifacts

  • optical+recognition+of+handwritten+digits/ contains the UCI optical digits dataset used for the quantum generation notebook.
  • classical_generator_model.pth is a saved classical generator checkpoint.
  • Quantum_Machine_Learning_Project_2023.pdf appears to be the project report or paper for the work.

Stack and dependencies

This repository uses:

  • Python
  • Jupyter Notebook
  • PyTorch
  • PennyLane
  • Qiskit
  • NumPy
  • pandas
  • Matplotlib
  • SciPy

How the project fits together

The repository blends two complementary research directions:

  1. A quantum generator/discriminator experiment using PennyLane and Qiskit to test variational quantum circuits for generative modeling.
  2. A classical deep-learning anomaly detection pipeline implemented as TadGAN to model temporal data and flag anomalies.

Both areas use public datasets and notebook-driven experimentation, making the repo more of a research sandbox than a deployable app.

Quick start

There is no full packaged install file in the root of the repository, so setup is notebook- and environment-based.

Recommended environment

python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
pip install torch torchvision numpy pandas matplotlib scipy pennylane pennylane-qiskit pennylane-lightning jupyter

Run the notebooks

jupyter notebook

Then open:

  • pennylane_qgan.ipynb for the quantum GAN experiments
  • main.ipynb or main_owi.ipynb for the anomaly and data-exploration notebooks
  • TadGAN/main.py for the time-series training workflow

Configure access to real quantum backends

Edit config.toml and replace the placeholder credentials before using IBMQ or IonQ backends.

Important notes

  • This repository appears to be an academic/research project and is not structured as a production package.
  • Some notebooks contain experimental or incomplete code paths and may require adjustments for current library versions.
  • Quantum backend access depends on valid provider credentials and may require account setup on IBM Quantum or IonQ.
  • The TadGAN implementation is a standalone project under TadGAN/ and is based on a GAN design for time-series anomaly detection.

Suggested next steps

  • Clean up the notebooks into a reproducible pipeline with a single environment file.
  • Add a requirements.txt or environment.yml for dependency installation.
  • Separate the quantum experiments and TadGAN experiments into distinct modules or directories.
  • Document the expected outputs and model evaluation metrics for each notebook.

License

The repository includes a TadGAN/LICENSE file. The root project itself does not appear to declare a separate root-level license in the current README.

Summary

This repo is a research collection for quantum machine learning and anomaly detection, combining PennyLane-based quantum experiments with a PyTorch TadGAN training pipeline. It is best understood as a notebook-driven experimental codebase for exploring quantum and classical ML techniques on synthetic and benchmark datasets.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages