Git Product home page Git Product logo

cohort-8's Introduction

Pulse Optimisation Using Gymnasium Enviornment

I created this enviorment for the public to easily able to implement any Reinforcement Learning algorithm for Optimisation of Qubit pulses. My main motivation for this work is this paper https://arxiv.org/pdf/2105.01079.pdf. This enviorment hopes to provide an easy playground for creating policy networks for the Qubit Pulses without worrying about the Physics involved.

Install

Do one of the following in the source directory (preferably in a Python virtual environment set up for Qiskit Dynamics)

  • ./setup.py install
  • pip3 install .

How to work with this repo

Making Enviornment

import gym
import Rx_Env
env = gym.make('Rx_Env/RxEnv-v0')

Using Enviornment

Right now the enviornment returns

  1. observation: A dictionary of Start, Current, Target State
  2. reward: Reward directly based on Fidelity, some bonus is given for fidelity greater than 0.999
  3. done: To stop the episode after a set number of evolutions(20) achieved
  4. truncated: To stop in between for some reason.
  5. fidelity info: Returns a Dictionary of current Fidelity

Future

Please raise an issue/Pr if you have any suggetions or would like to contribute. Ideally I would like for this library to contain a default Policy Network good enough to give you the ideal pulse for implementatiion of any gate given its paramenters and a hardware without requiring any Physics or RL knowledge. I am currently working on creating such policy network for X gate. If I can get it working efficiently enough I shall move to creating a unviversal Enviornment/Policy Network.

cohort-8's People

Contributors

dubeypray avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.