Skip to content

God may not play dice with the universe... but we do

Notifications You must be signed in to change notification settings

kmatt10/Quantum-Casino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

Quantum-Casino

God does not play dice with the universe... but we do

A collection of games (text-based or not) inspired by quantum mechanics and utilizing the Qiskit library. More will be added over time

Quantum Hold 'em

A quantum inspired version of Texas Hold 'em. In this game you're given 5 qubits initialized in a state containing no more than 2 1s. Then for each qubit you can either "Hit" or "Stand". A "Hit" will randomly select a gate from [I,X,H,Z,CNOT] and apply it to the current qubit. In the case of CNOT it will be tied between the current qubit and the previous qubit. "Stand" will take no action (applying an I gate with 100% chance). Finally after all 5 qubits have been acted upon, the system is measured and your resulting string is scored!

On top of that, you're given $100 to start with while each action has a cost ($5: Hit $10: Stand). You play until you run out of money and then your score is tallied. Try to get the best points/$ ratio!

Scoring is as such:

20 -- all 1s

15 -- all 0s

10 -- palindrome string

or a point for each 1 in the result.

The game only runs on a simulator for now but with the 5 qubit limit it can run on actual quantum hardware provided through qiskit

only requires qiskit

About

God may not play dice with the universe... but we do

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages