Skip to content

MagriLab/RF_QRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RF_QRC

This repository provides a framework for predicting chaotic dynamics and extreme events with Quantum Reservoir Computing (QRC) and introduces Recurrence-free Quantum reservoir computing (RF-QRC) [1]. It include tools for trainining, predicting and comparing Qiskit-based QRC implementation with classical reservoir computers.

Repository Structure

  • src/Notebook.ipynb Contains the main workflow to train and predict with quantum reservoir computers. Input data can be modified to extend the framework to other systems such as Lorenz96 or MFE for which the solvers are already added.

  • src/QRC/qrc.py Implements the Qiskit-based quantum reservoir and the methods required to train it in the open-loop and predict in closed-loop using quantum circuit simulations.

  • src/QRC/crc.py Implements the classical reservoir computing or Echo State Network (ESN).

  • src/QRC/solvers.py Classical solvers to generate the training / true data.

  • src/QRC/systems.py Implements chaotic systems including Lorenz63 , Lorenz96 and MFE model.

  • src/QRC/validation.py Hyperparameter tuning (validation) using recycle validation to tune classical reservoir hyperparamters. RF-QRC does not require extensive hyperparamter tuning so the parameter can be directly varied in the notebook.

Usage

To get started: First, install the required dependencies:

pip install -r requirements.txt

Then run the following notebook

python Notebook.ipynb

Or alternatively,

python Notebook_MFE.ipynb

Citation

If you use this code in your research, please cite the corresponding paper:

Prediction of chaotic dynamics and extreme events: A recurrence-free quantum reservoir computing approach (https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.6.043082)

About

Implementation of classical and recurrence-free quantum reservoir computing for predicting chaotic dynamics

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published