Programming quantum games
(and other highlights from the QISKit tutorial)
jwo@zurich.ibm.com
twitter.com/decodoku
James R. Wootton
Quantum Technology, IBM Research - Zurich
§ When you start programming, you start small
– Make something happen
– Print to screen
– Start interacting things
§ You won’t save the world in your first program!
Your first quantum program
‘Hello World’
§ ‘Hello World’ is the classic example
§ Just make a program that prints some text to screen
print(‘Hello World’)
‘Hello World’
§ ‘Hello World’ is the classic example
§ Just make a program that prints some text to screen
(or toast)
print(‘Hello World’)
flickr.com/oskay
‘Hello World’
§ Do this with a quantum computer
§ Use the fact that computers encode in binary
1. Convert ‘Hello World’ to binary
2. Encode the binary in qubits
3. Extract the string from qubits
4. Convert binary to letters
5. Print to screen
§ Requires 88 qubits
§ Works just fine without the quantum part
0
1
0
0
World/binary/screen/program/print/qubits/quantum/Print/Convert/start/
World/binary/screen/program/print/qubits/quantum/Print/Convert/start/
-->