Coder Social home page Coder Social logo

qc-quantum-routing-optimization's Introduction

Qubit Routing with Reinforcement Learning (RL)

This repository is part of a Bachelor internship thesis on Quantum Circuit Routing Optimization for the company SURF. It contains code for a qubit routing procedure that makes use of Monte Carlo Tree Search (MCTS) guided by a Reinforcement Learning (RL) model. CLick here for thesis. This repository also contains notes and presentations from the meetings at SURF.

Intro to Qubit Routing

In order to run a quantum algorithm on a quantum computer, one has to make sure the algorithm is executable on a quantum computer. A quantum algorithm is represented in the form of a quantum circuit, consisting of quantum logic gates. These gates operations on the physical quantum bits inside the quantum computer. There are several things that need to be taking into account to be able to run these quantum circuits on a quantum computer (i.e topology, qubit lifetime, crosstalk etc). This research illuminates an approach on modifying a quantum circuit to satisfy the contrains of the target topology.

A quantum architecture has a connectivity graph, consisting of physical qubits ("nodes") and links between them. (Logical) qubits inhabit the nodes, and two-qubit gates may only occur between qubits on adjacent nodes in the topology. SWAP-gates must be inserted to move the qubits and satisfy such constraints - this process is known as "routing".

The Algorithm

alt text

Python package versions

This code requires Python 3.9, as well as specific versions of a few libraries in order to run. I believe there have been some minor changes to those libraries in recent times, and I have not yet had the chance to update the code in response. I recommend installing the relevant packages by running pip install -r requirements.txt, or you could even try fixing the code yourself to be compatible with the latest versions.

qc-quantum-routing-optimization's People

Contributors

lizaterdag avatar

Stargazers

Ed Kuijpers 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.