GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lfd/quantum-rl: Reinforcement Learning with Variational Quantum Circuits

BranchesTags
Open more actions menu

Latest commit

 

History

63 Commits
63 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
PT
PT
 
 
TF
TF
 
 
configs
configs
 
 
plot
plot
 
 
.gitignore
.gitignore
 
 
Dockerfile_CPU
Dockerfile_CPU
 
 
Dockerfile_GPU
Dockerfile_GPU
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements.txt
requirements.txt
 
 
train.py
train.py
 
 
wrappers.py
wrappers.py
 
 

Repository files navigation

Deep Reinforcement Learning with Variational Quantum Circuits

Code accompanying the paper:

Uncovering Instabilities in Variational-Quantum Deep Q-Networks. Maja Franz, Lucas Wolf, Maniraman Periyasamy, Christian Ufrecht, Daniel D. Scherer, Axel Plinge, Christopher Mutschler, Wolfgang Mauerer. Journal of The Franklin Institute. Elsevier (Open Access). 2022.

Training

To train an agent run:

python3 train.py path.to.config

e.g.

python3 train.py tfq.reproduction.skolik.cartpole.skolik_hyper.baseline.gs.sc_enc

We provide several configuration files in configs/

A training process can be tracked with TensorBoard:

tensorboard --logdir logs --host 0.0.0.0

Plotting

We provide all scripts and data, which were used to create the graphs in the paper.

Generate all figures:

cd plot/
./plot_all.sh 

Plot a single or multiple conducted experiments:

cd plot/
./plot_runs.sh

Docker

The Dockerimages contain all neccessary libraries and packages to run the training and plotting scripts. We provide one GPU and one CPU-only version.

Build docker image

docker build -f Dockerfile_GPU -t quantum-rl-gpu .

or

docker build -f Dockerfile_CPU -t quantum-rl-cpu .

Create docker container

docker run --name qrl-gpu -it -d --runtime=nvidia -v $PWD:/home/repro -p 6006:6006 quantum-rl-gpu

or

docker run --name qrl-cpu -it -d -v $PWD:/home/repro -p 6006:6006 quantum-rl-cpu

Access container

docker exec -it qrl-cpu /bin/bash

or

docker exec -it qrl-cpu /bin/bash

Restart a stopped container:

docker start qrl-gpu

or

docker start qrl-cpu

About

Reinforcement Learning with Variational Quantum Circuits

Resources

Readme
GPL-2.0 license
Activity
Custom properties

Stars

7 stars

Watchers

2 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.