Giter Club home page Giter Club logo

qgol's Introduction

Quantum Game of Life

What is this?

This is an attempt to use quantum annealing to process and evolve a Conway's Game of Life board.

The entire board is put as a constraint satisfaction problem using binary quadratic model (from dwave systems). And solved with multiple annealing methods (including dwave's quantum annealer).

File Structure

I personally used a folder called working_folder to store all the input/output/image files (thus the reference in gitignore and some scripts)

labels.py is a library to supply uniform name generators for the variables in the BQM.

input_creator.py is designed to create input files for the QGOL.py

QGOL.py takes input file and solves it.

display_state_file.py is used to show the output, with both command line and graphical representation.

tool.py is just a random script file in case I want to test anything out.

non_annealing_solver.py is a legacy script to produce an output that simulates how a correct version of my old approach would work.

What have I achieved

With 2 time steps only, forward evolution of the board. Completely accurate solution with classical or hybrid solvers. Completely accurate solution with quantum solver of Zephyr topology (tested on a small range of scenarios due to the size limit of the protoptype machines of this topology). Coarse solution with quantum solver of Pegasus topology.

Anything else is just broken (basically).

Misc

The problem formulation is by no means efficient, requiring 10 variables for a single cell on the board at a single time. Some variables can definitely be removed (I think).

TODO

Update non_annealing_solver.py to match the newer solution structure.

Revamp label system.

qgol's People

Contributors

2540825244 avatar

Stargazers

 avatar  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.