Giter VIP home page Giter VIP logo

maxprofs-llcio / qwars Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.26 MB

QWars is a qgame which is a quantum pygame to which we interface directly with the IBMQ Research HQ at the Thomas J. Watson Research Center in the cloud. QWars is a shoot-em-up game where you, our hero, are flying the Q Ship which is armed with lasers to which various size lava rocks will be flying at you in addition to a REAL IBMQ quantum computer to which is chosen when we make the initial network call as it selects the least busy device to to start the game. The results of our quantum circuit will produce values between 1 and 200 to which almost half will go into 00 and the other half to 11. There are 01 and 10 to account for noise. We use these values to seed our randomizer to make a truly exciting and unique experience with each new game! Our story is as follows. Quantum supremacy has been achieved and an evil AI has taken control as they have manufactured thousands of deep-fake copies of our beloved quantum computers! Your job as our hero is to shoot down the fake imposter quantum machines and save the universe from the AI singularity!

Home Page: https://github.com/vd1/The-Born-Supremacy-Quantum-Advantage-and-Training-of-an-Ising-Born-Machine---Journal.git

Python 100.00%

qwars's Introduction

QWars

QWars is a qgame which is a quantum pygame to which we interface directly with the IBMQ Research HQ at the Thomas J. Watson Research Center in the cloud. QWars is a shoot-em-up game where you, our hero, are flying the Q Ship which is armed with lasers to which various size lava rocks will be flying at you in addition to a REAL IBMQ quantum computer to which is chosen when we make the initial network call as it selects the least busy device to to start the game. The results of our quantum circuit will produce values between 1 and 200 to which almost half will go into 00 and the other half to 11. There are 01 and 10 to account for noise. We use these values to seed our randomizer to make a truly exciting and unique experience with each new game! Our story is as follows. Quantum supremacy has been achieved and an evil AI has taken control as they have manufactured thousands of deep-fake copies of our beloved quantum computers! Your job as our hero is to shoot down the fake imposter quantum machines and save the universe from the AI singularity!

OFFICIAL PRODUCT DEMO VIDEO

youtube.com

Installation

Navigate to python.org to install Python 3+.

Navigate to git-scm.com to install Git.

Open a terminal window and type the below command to clone the GitHub QApp repo.

git clone https://github.com/mytechnotalent/qwars.git
cd qwars

With the terminal window open, type the below command to install all of the dependencies.

pip3 install -r requirements.txt

Create and IBM Q Experience Account

Navigate to quantum-computing.ibm.com and create a new account.

Navigate to quantum-computing.ibm.com/account and click the 'Copy token' button in blue to obtain your API. Open up a text editor and paste in the token temporarily.

Open a terminal window and type the below command to setup your API key with your software. Make sure you replace the 'MY_API_TOKEN' below with your API key you have stored in your text editor. Be sure to paste the API key between the single quotes as shown below.

python3
>>> from qiskit import IBMQ
>>> IBMQ.save_account('MY_API_TOKEN')
>>> quit()

Run Application

With the terminal window open, type the below command to run your qapp.

python3 qwars.py

A pygame console will load after a successful call to the IBM cloud.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache License, Version 2.0

qwars's People

Contributors

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