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.
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.
pennylane_qgan.ipynbexplores a PennyLane-based quantum generator/discriminator pipeline for generating images similar to handwritten digits.main.ipynbandmain_owi.ipynbextend the research notebooks with additional data loading, processing, and classical/quantum modeling experiments.qcircuit.jpegdepicts the quantum circuit used in the generator design.config.tomlcontains example PennyLane/Qiskit configuration values for IonQ and IBMQ backends, with placeholders for API keys.
TadGAN/contains a PyTorch implementation of the TadGAN architecture for anomaly detection in time-series data.TadGAN/main.pytrains the encoder, decoder, and critics on a rolling-window dataset to learn normal signal behavior and detect deviations.TadGAN/model.pydefines the neural network components for the encoder, decoder, and critics.TadGAN/anomaly_detection.pyis part of the anomaly scoring workflow for evaluating reconstructed sequences and critic outputs.UCR_Anomaly/andTadGAN/UCR/include anomaly benchmark datasets used in the experiments.
optical+recognition+of+handwritten+digits/contains the UCI optical digits dataset used for the quantum generation notebook.classical_generator_model.pthis a saved classical generator checkpoint.Quantum_Machine_Learning_Project_2023.pdfappears to be the project report or paper for the work.
This repository uses:
- Python
- Jupyter Notebook
- PyTorch
- PennyLane
- Qiskit
- NumPy
- pandas
- Matplotlib
- SciPy
The repository blends two complementary research directions:
- A quantum generator/discriminator experiment using PennyLane and Qiskit to test variational quantum circuits for generative modeling.
- 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.
There is no full packaged install file in the root of the repository, so setup is notebook- and environment-based.
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 jupyterjupyter notebookThen open:
pennylane_qgan.ipynbfor the quantum GAN experimentsmain.ipynbormain_owi.ipynbfor the anomaly and data-exploration notebooksTadGAN/main.pyfor the time-series training workflow
Edit config.toml and replace the placeholder credentials before using IBMQ or IonQ backends.
- 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.
- Clean up the notebooks into a reproducible pipeline with a single environment file.
- Add a
requirements.txtorenvironment.ymlfor 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.
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.
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.