, 12 tweets, 5 min read Read on Twitter
Here is how to programme a game on a QUANTUM computer. Yep, you read that right! That's already happening.

So if you are into video #gaming, or #quantum mechanics, or programming, or just curious how you can use all of this, read on 😀
I spoke to @IBM folks in Zurich who are giving a crowd of game developers & just enthusiasts an opportunity to use IBM's 16-qubit quantum computer to design games.

They'll be doing it next weekend in Helsinki, in a *sauna* & on a Ferris wheel in sub-zero temp (don't ask me why)
So how do you design, say, Battleship on a quantum computer? Here goes:

You have to use Qiskit – short for Quantum Information Science Kit – the open source framework launched in 2017 and based on IBM's quantum computing programme, Q Experience
If you’re into game design, you probably use a programming language such as Python, which works with bits – ones and zeros – that store memory on a standard computer.

To create, say, the Battleship game on a quantum computer, you first need a grid of qubits...
Qubits are fragile quantum bits that can be in a superposition of a zero and a one state.

This way, the ‘zero’ state could be associated with ‘sunk’ and the ‘one’ with ‘intact’.
Then, you have to use specific quantum operations to flip the qubit from zero to one, to represent the other player’s attack.

On a classical computer, the ship is either hit or not – there’s no in-between.
But on a quantum one, because of the superposition of states, it’s possible to have ships take a few hits before they get destroyed – because you'll be going through a few steps of superposition states.
One problem all quantum computers currently in development face – be it by IBM, Google, Intel, Microsoft or a number of academic labs and startups – is noise.

That’s when qubits get corrupted from any kind of slightest interaction w environment, b/c of heat, vibration, sound...
It means that when you read out a qubit, even if it's solidly zero, sometimes it says it's a one.

Noise is a huge problem when it comes to trying to get quantum computers to outperform classical computers.
Researchers are working hard on reducing the noise level and then error-correcting the qubits, but that’s incredibly fiddly. For game designers, though, noise can come in handy.

They can use it to represent little bits of weirdness – like bizarre weather effects, say, a tsunami
...that may cause your ship to be a little bit more damaged than it should have been otherwise. Even if the opposing player hasn't attacked you enough, noise might push you over the edge.
Say you've had a few torpedoes, @decodoku of @IBMResearch told me, and it's not enough to sink you, but the noise has struck you with a lightning bolt, you're going to sink anyway.

Fun, huh? 😀
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Katia Moskvitch
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!