Endless Fun in high dimensions - A Quantum Card Game - arXiv
←
→
Page content transcription
If your browser does not render page correctly, please read the page content below
Endless Fun in high dimensions - A Quantum Card Game Lea Kopfa , Markus Hiekkamäkia , Shashi Prabhakara and Robert Ficklera a Tampere University, Photonics Laboratory, Physics Unit, Tampere, FI-33720, Finland Abstract Quantum technologies, i.e., technologies benefiting from the features of quantum physics such as objective randomness, superposition, and entanglement, have enabled an entirely different way of distributing and processing information. The enormous progress over the last decades has also led to an urgent need for young professionals and new educational programs. However, the lack of intuitive analogies and the necessity of complex mathematical frameworks often hinder teaching and learning efforts. Thus, novel education methods, such as those involving gamification, are promising supplements to traditional teaching methods. Here, we present a strategic card game in which the building blocks of a quantum computer can be experienced. While playing, participants start with the lowest quantum state, play cards to “program” a quantum computer, and aim to achieve the highest possible quantum state. By extending the game to high-dimensional quantum systems, i.e., systems that can take more than two possible values, and by arXiv:2107.12007v1 [quant-ph] 26 Jul 2021 developing different multi-player modes, the game can be used as an introduction to quantum computational tasks for students. As such, it can also be used in a classroom environment to increase the conceptual understanding, interest, and motivation of a student. Therefore, the presented game contributes to the ongoing efforts on gamifying quantum physics education with a particular focus on the counter-intuitive features which quantum computing is based on. 1. Introduction based on quantum physics, the current technological thrive is often termed as the second quantum revo- Quantum physics is considered one of the most suc- lution [2]. This technological push can also be wit- cessful branches in physics that humans have con- nessed through various large scale funding schemes ceived so far. As of the time of writing, quantum that are currently ongoing around the world, e.g., physical predictions perfectly match the experimen- the European Quantum Flagship initiative [3] funded tal findings with unprecedented precision. Quantum with up to 1 billion Euros. mechanics is the underlying theory for technologies One of the most prominent examples of quan- such as nuclear reactions, semiconductors, and lasers, tum technology is a quantum computer. Compared to name a few. Without quantum physics, the current to their classical counterpart, quantum computers information-driven society would not be possible. In- promise a speed-up of certain tasks, outperforming terestingly, this progress has been achieved without a all modern computers and enabling computational consensus in academia on an interpretation of its the- algorithms that are impossible in a classical setting. oretical framework. Even today, there is an ongoing Recent progress has led to the first large-scale quan- debate on how to interpret the underlying principles tum computational system that outperforms all clas- of quantum physics [1]. sical computers in a specific computational task [4, 5]. At the very heart of this debate are fundamen- Hence, quantum supremacy, the demonstration of a tal principles of quantum physics such as objective quantum device that can solve problems no classical randomness, interference, superposition, and entan- computer can, has become a reality. glement. These concepts are difficult to grasp as they In this article, we present a card game that uses often contradict our intuition, which is based on ev- gamification strategies to provide a fun and engag- eryday experiences and a classical understanding of ing introduction to the concepts of quantum com- the world. Although the debate about the best way puting. The game, Endless Fun in high dimension, is of interpreting this enormously successful theory is designed to be a low threshold introduction to quan- still ongoing, these counter-intuitive features have tum computing and encourage people to look into enabled the invention of an entirely new way of pro- the fundamentals of quantum physics. The game im- cessing information over the last decades. Since it plements basic quantum mechanical concepts such differs significantly, on the fundamental and appli- as quantum logic operations, superposition, and en- cational level, from already established technologies tanglement. While playing cards corresponding to 1
quantum operations, the participants are program- example, videos that visualize quantum effects [10]. ming a high-dimensional quantum computer with Another approach has been simple, adjustable ex- the aim of achieving the highest value of their own perimental setups, such as the Quantenkoffer [11], quantum state. The final result is evaluated using an demonstrating basic quantum effects. However, such included computer program. approaches do not put the user into a gameful at- In the following, we give a brief overview of gam- mosphere; consequently, they rarely lead to self- ification approaches in the field of quantum physics, motivated repetition and deeper immersion into the followed by an outline of the game. Subsequently, we topic. also discuss some important strategic elements of the Quantum games focus more on gamification meth- game and possible adaptations through which play- ods. In one particularly well-made example, basic ers can continuously increase their understanding quantum mechanical concepts like wave functions, of fundamental quantum effects. Finally, we briefly energy levels, probability densities, and interference discuss its application in an educational scenario, are introduced in an online computer game called comment on the game’s limitations, and give an out- Particle in a Box [12]. However, modern concepts es- look. sential for quantum information technologies, such as superposition and entanglement, are not within the scope of the game. These quantum mechani- 2. Background cal features are also added in various other games, As deeper understanding often starts with an initial that are often “quantized” adaptations of well-known intuitive grasp of the effects, a gameful approach games: Quantum TiqTaqToe [13, 14], Quantum Chess to novel complex topics, e.g., quantum physics and [15, 16], Quantum Minigolf [17], as well as a quan- quantum information, has been the focus of vari- tum version of Minecraft called qCraft [18]. These ous gamification efforts. If properly performed, with quantum games have the advantage that the general challenging but achievable goals, gamification meth- rules are well known, which often makes picking up ods can be used to loosen up the atmosphere in a these games more appealing. course [6, 7]. Moreover, educational games are not In addition to online games, there are also educa- only limited to students. Additionally, interested en- tional board games, e.g., a game developed by IBM thusiasts can utilize gamified approaches to enhance called Entanglion [19], in which students coopera- their understanding. It also offers an entertaining tively learn about quantum computing in a science- way to promote academic findings, and supplements fiction context. The idea of gamification in quantum important science outreach activities [8]. sciences has also been the center of focus in vari- ous quantum game jams [20], in which instructive and entertaining games have been developed. Many 2.1. Gamification in quantum physics quantum physicists hope that these games could be education more than just tools for learning, as expressed by Education in quantum physics and, in particular, John Preskill who states that “[p]erhaps kids who modern quantum information science can benefit grow up playing quantum games will acquire a vis- from ideas developed through gamification methods. ceral understanding of quantum phenomena that our As many concepts in quantum physics do not have generation lacks” [21]. Lastly, gamification methods an analogue from everyday experience, it is often have also been of interest in the research community challenging to convey an intuitive, conceptual under- for solving complex problems in quantum physics standing at an early stage without resorting to com- [22]. While it was recently shown that these initial plex mathematical models [9]. To overcome these efforts require corrections and refinements [23], they challenges, different approaches have been made to nevertheless demonstrate the power of gamification ease the students learning experience and encourage in modern quantum physics, despite (or because) of a better understanding. its mind-boggling effects. One popular approach is via demonstrating var- ious quantum effects in computer simulations, for 2
2.2. Related work - Q|Cards⟩ logic gates. By playing quantum gates, the players aim to increase their quantum-bit value and decrease At the Quantum Wheel game jam that took place in the other players’ bit value. The final quantum-bit 2019 in Helsinki [20], a quantum card game Q|Cards⟩ values are calculated by an evaluation software. Com- was developed and introduced [24]. The Q|Cards⟩ paring the expected outcome to the mathematically game requires the participants to play physical cards correct outcome allows one to reflect on misunder- acting as quantum logic operations on the player’s standings and retrace the effects of each operation. quantum state. The final evaluation of the result, The main goal of this game is to provide a platform i.e., the resulting quantum state, is then evaluated to practice and engage with quantum logic opera- through a software running on a personal computer tions while providing varying difficulty levels. The or a mobile phone. detailed instruction manual, the Python-based evalu- The game presented here is strongly based on ation software, and the cards are provided as supple- Q|Cards⟩. The gameplay is very similar and only mentary material and in an online repository [26]. varies in minor details if Endless Fun is played in only two-dimensions. However, in contrast to the game Q|Cards⟩, Endless Fun aims at building a high- 3.1. Game concept dimensional quantum computer, i.e., a quantum com- In classical computation, information is saved in bit puter operating on states with three possible values values, which can either be 0 or 1. Analog to clas- instead of two. Although current quantum comput- sical computing, binary or 2-dimensional quantum ers exclusively use binary-valued quantum systems computers encode information into two-level quan- to encode bit-valued quantum information, the in- tum systems, so-called quantum bits or qubits. Sim- crease in possible outcomes when using high-dimen- ilar to classical bits, qubits can take values of 0 or sional quantum systems further enhances the com- 1. However, the quantum nature also allows for su- plexity of the game and offers more options to adjust perpositions thereof. To make this difference also the difficulty. Thus, we anticipate a longer-lasting visually clearer, qubit states are commonly written interest in playing the game, which is especially im- in the abstract bra-ket-notation introduced by Dirac, portant for grasping the concept of probability, only i.e., |0⟩ or |1⟩. In this notation, any superposition discernible after several repetitions. Furthermore, is written as a sum over both possible states, e.g., we describe a cooperative mode and outline a single- √1 (|0⟩ + |1⟩), which means that any measurement 2 player mode focusing on different learning objec- can result in either outcome, 0 or 1, with equal prob- tives. ability. Note that the prefactor √12 is often called a To allow the mathematical framework needed in probability-amplitude and is required to describe the higher dimensions, we could not rely on the Python- state with the correct overall probabilities (a squared based qiskit (open-source quantum computing soft- modulus is needed to obtain a physical probability). ware development kit) for simulating the quantum In the following, we will also use this notation to circuit, as the software of Q|Cards⟩ does. Hence, the signify that the game uses quantum states and that Python codes for Endless Fun were exclusively devel- the outcomes are obtained through measurements oped for the card game. Unfortunately, due to the involving probabilistic outcomes. High-dimensional high-dimensional nature of the used quantum states quantum states, often called qudits, go a step further and operations, the presented card game does not in complexity, as they do not only allow two but d include the feature of evaluating the game on a real possible outcomes. In three dimensions, for example, quantum computer using IBMs QExperience [25], as the qudit can be in any of the states |0⟩, |1⟩, |2⟩, or is possible in Q|Cards⟩. in a superposition such as √13 (|0⟩ + |1⟩ + |2⟩). The general goal of the game is to program a quantum 3. Endless Fun in high dimensions computer in such a way that the player’s own qudit value is as high as possible (|2⟩) and the opponent’s Endless Fun is a strategic multi-player card game that values as low as possible (|0⟩). introduces the players to quantum computational Each player receives seven cards at the beginning 3
Figure 1: A possible layout of the playing field at the start of a 4-player game after placing the pawns. The white fields represent the fields on which cards can be played. of the game. Then, the players take turns to place are added to each player’s total points. In the third their cards on the playing field on one of the qudits, and last round, only one card per player is played. either on their own or on one of the other players’ The player with the most points summed up over all (see Fig. 1 for an exemplary playing field). In the first three rounds wins the game. For a more detailed de- round, every player plays three cards. The cards rep- scription of the rules of the game, see the instruction resent single-qudit quantum logic gates, multi-qudit manual in the supplementary material. quantum logic gates, or one of two additional actions the players can perform (see table 1 for the playable 3.2. 2 and 3 dimensional operations cards and their consequences). After the cards are played, the qudit values are evaluated. Since this can The game can be played with either 2- or 3-dimen- easily result in complex vector analysis, the evalua- sional quantum logic operations. In 2d, only qubits tion software calculates the final states and simulates are allowed. In 3d, the third dimension is added. a measurement on that quantum system (see Fig. 2 The choice of dimension also affects the quantum for an exemplary play and outcome). The final state operations. In 2d, for example, only one X-gate is includes all possible outcomes and their respective defined, whereas, in 3d, two X-gates with different probability amplitude. The winning state is the state behaviors exist. Table 1 gives an overview of all which is measured by the evaluation system. The playable operations. The instruction manual includes players can choose the number of measurements the truth tables for all quantum gates and can be which are performed to determine the winning state. referred to for further information. A small number of measurements increases the ran- To not overwhelm the players, it is recommended domness, and a large number leads to a winning state to start the game in a simplified 2d-version, i.e., only which is more likely to be the state with the highest including single-qubit operations. This is an easy quantum mechanical probability. The authors note method to familiarize oneself with the rules and ba- that, unlike a real quantum mechanical measurement, sic quantum logic operations. The players already the evaluation program is choosing a winning state encounter quantum superpositions and the proba- which has at least one qudit with the highest value bilistic nature of quantum physics through measure- achieved in each round. The measured state (i.e. the ments in this version. By including the multi-qubit winning state) defines which qudit values the players operations, another level of complexity can be intro- achieved in the round. The players keep these qudit duced through the possibility of generating quantum values as points. In the second round, the players entanglement. Finally, the most complex quantum play two cards, after which the same state measure- states and difficulty of the game can be reached, by ment procedure is performed, and the qudit values choosing to use qudits instead of qubits, i.e., by in- 4
Figure 2: A possible second-round with four players in 3d. Player 1 starts with the qudit value of |0⟩ obtained in the first. Player 2, 3, and 4, start with their qudit values of |2⟩, |1⟩, and |0⟩, respectively. The evaluation software on the right evaluates the winning state as |2, 1, 1, 1⟩, where the position of qudit values corresponds to the players. For a better understanding of the underlying mechanisms, the generated end state is also displayed on the bottom of the window, before it was measured, i.e. reduced to a single outcome state. The other possible outcomes can be found by inspecting the overall state. Here the states |2, 1, 2, 2⟩ and |2, 1, 0, 0⟩ could also have been obtained with the same probability. Actions Cards Description Single-qudit gates I Identity operation. It does nothing. X X-gate. In 3d it increases the qudit value by 1 or 2 cyclically (2d: increase of qubit by 1 cyclically). Y Y-gate. It acts like the X-gate with an additional phase shift. Z Z-gate. It adds a phase shift to the state. H Hadamard-gate. It generates a superposition of all possible qudit values with equal probabilities. Multi-qudit gates CX CX-gate. The CX operation is controlled by one qudit and acts on another. If the control qudit value is 0, nothing happens. If it is 1 or 2, an X-gate acts on the target qudit. SWAP SWAP-gate. Swaps the value of two qudits. Other Cancel The card replaces a played quantum operation by an identity operation. Steal The player can steal a card from another player, but must play it immedi- ately. Table 1: Overview of the playable cards and their consequences. volving the third dimension. and playfully explore new possibilities. Whether the players decide to increase their qudit value or de- 3.3. Strategic elements crease the value of their opponents’ qudits depends on the available cards and personal preference. The By experimenting with different logic operations, main component of successful strategies is how the new strategies can be worked out by the players. This players handle quantum probabilities because super- allows the players to continue learning new effects position states and entangled states are generated 5
very often. In the following, we introduce the gen- qudit state becomes √13 (|0, 0⟩ + |1, 0⟩ + |2, 0⟩). If a eration of these fundamental elements of quantum CX-gate is consecutively played below the Hadamard mechanics through quantum logic operations. operation (controlled by qudit 1 and targeting qudit 2), the end state will be √13 (|0, 0⟩ + |1, 1⟩ + |2, 2⟩). Generating superpositions A Hadamard-gate gen-This means, that both players’ states will randomly erates a superposition of multiple states, as shown have either the value 0, the value 1, or the value 2 in Fig. 3a). By playing a Hadamard-gate in 3d on a after running the software. However, due to entan- qudit, the player’s qudit value is, loosely speaking, glement, both qudits end up with the same random in all states |0⟩, |1⟩, and |2⟩ at the same time. It can value. As before, in case the players only use the be found in either state with the same probability. two-dimensional version of Endless Fun, a similar Only when observing the state in a measurement, it procedure leads to qubit entanglement with fewer takes on the value of |0⟩, |1⟩, or |2⟩. The software possible random, but correlated, outcomes. “collapses” the state by simulating a measurement and gives the random outcome with the quantum 3.4. Cooperative mode physical probability. A similar feature and result also hold for qubits, with the difference of obtaining only To put the focus on other learning benefits, the game two possible outcome values. can be played in a cooperative mode. The coopera- This probabilistic property adds an element of luck tive mode is a game mode in which the focus is not to the gameplay, especially if only a small number set on individual achievement, as it is in the main of measurements is used in the evaluation program game mode, and as such, the pressure on each in- to obtain the final state. It balances the advantage dividual player is reduced. In this mode, the same that experienced players have over less experienced rules apply as in the main competitive mode; how- players and raises the suspense. Since the probabili- ever, the goal is not to win against the other players ties can be directly influenced by playing quantum but to reach the highest possible values summed up operations, the players have the tools to control their over all qudits, as a group. The players are not al- luck to some extent. Thus, luck does not diminish lowed to show their cards to the other players and the need for a strategy; rather, it is a major compo- cannot discuss strategies. Hence, student satisfaction nent that needs to be considered when building a and self-confidence are addressed more directly in a successful strategy. supportive and encouraging atmosphere. The game mode also facilitates introducing new players to the Generating entanglement Entanglement is an- game. other fundamental feature of quantum physics and quantum information. Quantum entanglement cor- 3.5. Endless Fun in higher education relates the state of one qudit, i.e., its value, with the In the authors’ experience, people who have not en- state of another qudit. Counter-intuitively though, countered quantum mechanics in their studies are the entangled qudits still coexist in multiple states generally reluctant to approach quantum computa- simultaneously. Hence, when an entangled state is tion, since it is considered to be a highly sophisti- measured, the outcome of entangled players will be cated topic that is perceived to be very demanding. correlated but random. In quantum computing (and To encourage active participation and get past feel- thus in this game as well), entanglement is gener- ings of reluctance when dealing with the topic, the ated by playing a Hadamard-gate and consecutively Endless Fun card game offers an easy approach to a CX-gate on one qudit. We note that for qubits, the forming a conceptual understanding of the topic. For CX-gate is more commonly known as a CNOT-gate. more experienced players, the game offers an en- As an example, let’s assume players 1 and 2 both have vironment to apply their knowledge and reflect on a qudit value of 0, as displayed in Fig. 3 b). Hence, the misunderstandings. In the frame of quantum infor- starting state is |0, 0⟩. A Hadamard-card is played mation and computation courses, playing the game on qudit 1, generating a superposition, i.e., the two- can have additional advantages. It adds diversity to 6
Figure 3: a) A quantum operation is generating a qudit superposition of the state of player 1. Player 1’s starting state |0⟩ turns into √13 (|0⟩ + |1⟩ + |2⟩). b) Entangling the qudit of players 1 and 2. The starting state |0, 0⟩ is transformed to √13 (|0, 0⟩ + |1, 1⟩ + |2, 2⟩). The qudit values of player 1 and 2 could be any one of the three possible states, but the values between the two players will match perfectly after evaluation. classical teaching methods, prevents boredom, and 4. Limitations and future motivates students through positive feedback [27]. improvements Furthermore, it gives room to experience, explore, and practice the complex concepts of quantum effects The current version of the game describes some fun- and promotes student participation. damental quantum mechanical effects. However, it The game is aimed at interested players. A basic concentrates highly on quantum computation. Some understanding of vector analysis is beneficial but not quantum mechanical effects, such as the wave-like necessary. The game can be used to support and probability distribution and non-locality, are not cov- supplement undergraduate and graduate courses on ered by this game. Although the first trial games quantum information and computation but is not have given positive feedback overall, the game can limited to those situations. It is, for example, not be further improved. necessary to have active guidance through a teacher An additional mechanic that could be introduced since carefully reading the instructions is sufficient to the game is a state measurement operation which for understanding the rules of the game. The opti- measures the state of one qudit, individually, at any mal educational value however, is only achieved if point in the quantum circuit. This mechanic would the outcomes are assessed and thoroughly thought add an extra layer of complexity and encourage play- through. ers’ to formulate a deeper understanding of the prob- First trials with graduate and undergraduate stu- abilistic nature of quantum measurements. dents have shown good indications of the educa- Another ambitious future improvement could be tional value of the game. Already after a couple the development of a single-player mode, which en- of trial games with voluntary physics students, the ables a player to look into the topic in more detail understanding of quantum operations have consider- whenever and wherever they want. In such a single- ably improved. The predominantly positive feedback player mode, the players would solve ready-made shows promise for enhanced student involvement in puzzles. They are given a preset arrangement of qudit future quantum information courses. An enthusias- values and operations on the playing field, and aim at tic student, for example, stated that he “learned about generating a specific final state by playing a given set quantum logic in an engaging, fun way.” A thorough of cards. The puzzles should have a broad range of study to evaluate the educational effectiveness of the difficulties, starting with easy compositions set up as game is pending. an introduction to the rules. The difficulty can then 7
be gradually increased, and quantum effects will be erful tool which is not only suitable for players with gradually introduced in a guided manner. This guid- some background knowledge but also for introduc- ance will be especially useful since some features ing players to quantum operations in an easy-going only emerge if a precise composition of quantum way. Thus, it can also be used for outreach purposes. operations is performed. This approach will allow the player to reflect on all underlying quantum con- cepts, which might not be as straightforward in the Acknowledgments multi-player mode. Thus, a single-player mode could The authors thank Stephen Plachta, Matias Eriksson, also act as a tutorial to the multi-player game. An- Subhajit Bej, Marco Ornigotti, Mona Pulst, and Rupa other great advantage of the single-player mode, in Kiran for feedback on the game, valuable suggestions, comparison to the multi-player modes, would be the and design support. The authors furthermore thank possibility to play alone. Players could choose the Ilkka Kylänpää for help in software-related ques- time and place, while playing at their own pace and tions. The authors acknowledge the inventors of the difficulty level, with clear goals. The single-player card game Q|Cards⟩: Oskari Kerppo, Jorden Senior, mode would further allow the implementation of Sabrina Maniscallo, Guillermo Garcia-Perez, Samuli more motivational affordances [28]. Progress would Jääskeläinen, Sylvia Smatanova, Krista Erkkilä, and be easier to track which would build up courage Elie Abraham. All authors acknowledge financial and motivate students to face increasingly difficult support from the Academy of Finland through the challenges. Extrinsic motivation indicators, such Competitive Funding to Strengthen University Re- as streaks and achievements, could easily be imple- search Profiles (decision 301820) and the Photonics mented in a single-player game mode, especially if Research and Innovation Flagship (PREIN - decision implemented in a digital or online version. Leader- 320165). LK acknowledges support from the Vilho, boards could further track the progress made and Yrjö and Kalle Väisälä Foundation of the Finnish could motivate the players to further explore new Academy of Science and Letters. MH acknowledges strategies [29]. support from the Magnus Ehrnrooth foundation Besides the single-player mode and possible ad- through its graduate student scholarship. RF ac- vanced mechanics, a more professional design could knowledges support from the Academy of Finland enhance the players’ experience and providing a mo- through the Academy Research Fellowship (decision bile application of the evaluation software will fur- 332399). ther improve accessibility. References 5. Conclusion [1] M. Schlosshauer, Elegance and Teaching quantum mechanical concepts is a chal- Enigma: The Quantum Interviews, lenging task, not only because students usually have Springer Verlag Berlin Heidelberg, 2011. an obstructive perception of quantum mechanics, doi:10.1007/978-3-642-20880-5. but also because they often lack an intuitive compre- [2] J. P. Dowling, G. J. Milburn, Quantum tech- hension. To loosen up the atmosphere and promote nology: the second quantum revolution, Philo- student engagement, methods from gamification can sophical Transactions of the Royal Society of be applied. The presented strategic card game End- London. Series A: Mathematical, Physical and less Fun in high dimensions offers multiple ways, and Engineering Sciences 361 (2003) 1655–1674. game modes with which learning new quantum com- [3] EU, Quantum technologies flagship, https://qt. putational concepts is facilitated and diversified. First eu/, 2020. trial games with students have shown the educa- [4] F. Arute, K. Arya, R. Babbush, D. Bacon, tional effectiveness, and potential the game has for J. C. Bardin, R. Barends, R. Biswas, S. Boixo, supporting conventional teaching methods. Together F. G. Brandao, D. A. Buell, et al., Quantum with the evaluation software, the card game is a pow- 8
supremacy using a programmable supercon- //quantumchess.net/, 2020. ducting processor, Nature 574 (2019) 505–510. [16] C. Cantwell, Quantum chess developing a math- [5] H.-S. Zhong, H. Wang, Y.-H. Deng, M.-C. Chen, ematical framework and design methodology L.-C. Peng, Y.-H. Luo, J. Qin, D. Wu, X. Ding, for creating quantum games, arXiv preprint Y. Hu, et al., Quantum computational advantage arXiv:1906.05836 (2019). using photons, Science 370 (2020) 1460–1463. [17] R. Friedemann, Quantum minigolf, http:// doi:10.1126/science.abe8770. quantumminigolf.sourceforge.net/index.html, [6] S. Deterding, D. Dixon, R. Khaled, L. Nacke, 2011. From game design elements to gamefulness: [18] D. Ratcliffe, Qcraft, https://sites.google. defining" gamification", in: Proceedings of the com/a/elinemedia.com/qcraft/wiki/qcraft/ 15th international academic MindTrek confer- blocks-and-items#TOC-Quantum-Ore, 2013. ence: Envisioning future media environments, [19] M. Ashoori, D. Weisz, Justin, A. Cox, L. Ken- 2011, pp. 9–15. ney, Michael, M. Gambetta, Jay, M. Chow, Jerry, [7] J. Hamari, D. J. Shernoff, E. Rowe, B. Coller, S. Bishop, Lev, Entanglion - open source quan- J. Asbell-Clarke, T. Edwards, Challenging tum board game, https://entanglion.github.io/, games help students learn: An empirical study 2018. on engagement, flow and immersion in game- [20] A. Kultima, S. Maniscalco, Quantum based learning, Computers in human behavior wheel - quantum game jam, http: 54 (2016) 170–179. //www.finnishgamejam.com/quantumwheel/, [8] M.-S. Kuo, T.-Y. Chuang, How gamification 2019. motivates visits and engagement for online aca- [21] J. Preskill, Quantum computing in the NISQ demic dissemination–an empirical study, Com- era and beyond, Quantum 2 (2018) 79. puters in Human Behavior 55 (2016) 16–27. [22] J. J. W. Sørensen, M. K. Pedersen, M. Munch, [9] L. Koopman, W. Kaper, A. Ellermeijer, et al., P. Haikka, J. H. Jensen, T. Planke, M. G. An- Understanding student difficulties in first year dreasen, M. Gajdacz, K. Mølmer, A. Lieberoth, quantum mechanics courses, in: The First Euro- et al., Exploring the quantum speed limit with pean Physics Education Conference (EPEC-1), computer games, Nature 532 (2016) 210–213. Bad Honnef, Germany, Citeseer, 2005. [23] J. H. M. Jensen, M. Gajdacz, S. Z. Ahmed, J. H. [10] B. Thaller, Advanced visual quantum mechan- Czarkowski, C. Weidner, J. Rafner, J. J. Sørensen, ics, Springer Science & Business Media, 2005. K. Mølmer, J. F. Sherson, Crowdsourcing hu- doi:10.1007/b138654. man common sense for quantum control, arXiv [11] qutools GmbH, Quantenkoffer: a quantum preprint arXiv:2004.03296 (2020). physics science kit, https://www.qutools.com/ [24] O. Kerppo, J. Senior, S. Maniscallo, G. Garcia- quantenkoffer_science-kit/, 2020. Perez, S. Jääskeläinen, S. Smatanova, K. Erkkilä, [12] A. Anupam, R. Gupta, A. Naeemi, N. Jafari- E. Abraham, Q|cards>, https://zhamul.itch.io/ Naimi, Particle in a box: An experiential qcards, 2019. environment for learning introductory quan- [25] IBM, Qexperience, https://quantum-computing. tum mechanics, IEEE Transactions on Educa- ibm.com/, 2020. tion 61 (2017) 29–37. doi:10.1109/TE.2017. [26] L. Kopf, M. Hiekkamäki, S. Prabhakar, R. Fickler, 2727442. Endless fun in high dimensions – a card game [13] A. Goff, D. Lehmann, J. Siegel, Quantum tic- to program a high-dimensional quantum com- tac-toe, spooky-coins & magic-envelopes, as puter, 2020. doi:10.5281/zenodo.4016359. metaphors for relativistic quantum physics, in: [27] D. Vlachopoulos, A. Makri, The effect 38th AIAA/ASME/SAE/ASEE Joint Propulsion of games and simulations on higher educa- Conference & Exhibit, 2002, p. 3763. tion: a systematic literature review, Interna- [14] E. van Nieuwenburg, Quantum TiqTaqToe, tional Journal of Educational Technology in https://quantumtictactoe.com/, 2019. Higher Education 14 (2017) 22. doi:10.1186/ [15] QuantumRealmGames, Quantum chess, https: s41239-017-0062-1. 9
[28] N. Z. Legaki, J. Hamari, Gamification in statistics education: A literature review, in: J. Koivisto, M. Bujić, J. Hamari (Eds.), Proceed- ings of the 4th International GamiFIN Confer- ence, ACM Press, 2020, pp. 41–51. [29] P. Buckley, E. Doyle, Gamification and student motivation, Interactive learning environments 24 (2016) 1162–1175. 10
By the Experimental Quantum Optics Group Players: 2-7 Ages: 12 and up Duration: approx. 30min The Idea of the game Build your own high-dimensional quantum computer. By applying quantum logic operations to high- dimensional quantum bits – so-called qudits -, you can change their values. Try to reach the highest possible value on your qudit, while keeping the other player’s qudit as low as possible. The evaluation software calculates the final state after each round, in which a certain number of measurements will project possible complex superposition states into a final value. The player with the highest qudit values in three rounds wins the game. What you will need • 55 Cards • As many pawns as players • 1 die • Paper and pen to write down the players points • The evaluation software Setup • The players agree on playing in 2D or 3D. In 2D, qubit values of 0 and 1 are possible. In 3D, the qudit values can be 0, 1 and 2. In 2D the H3 cards are removed from the card deck. • Every player gets 7 random cards and a pawn. • Decide on a starting player by throwing a dice. The player with the highest number starts. • The starting player is the first to choose his or her qudit position. The player marks the qudit’s position by placing his or her pawn. • Then, the players take turns going to the left. The players can place their pawns only on positions neighboring already set qudits. The layout at the start of a 4-player game after the starting positions are decided. 1
Playing the game 1st Round: • The starting qudit value for all players is 0. • The starting player starts the round by playing one card from his or her hand. • Going to the left, the other players take turn in playing their operations. • The round is finished after every player has played three cards. • Then, the played quantum operations are entered into the evaluation software to determine the winning state. • The players earn as many points as the value of their qudit in the round’s winning state. Write the points down on a paper. 2nd Round: Round 2 is played as the previous round with the following changes: • The starting state of all players is their winning value of the last round. • The starting player is the player to the left side of the previous starting player. • Every player plays only 2 cards. 3rd Round: Round 3 is played as the previous round with the following changes: • Only 1 card is played per player. End of the game: • The player with the most points summed up over all three rounds wins the game. How to play cards There are three different types of quantum operations. For all quantum operations the cards must be placed on the highest possible position beneath a qudit, but spaces to the left or right are allowed. Take a look at the truth tables at the end of the instructions to learn how they act. Note: • The players can put the card on any position, i.e. also apply logic operations on qudits of other players. • The way a computation on this quantum computer works: every unitary is applied from left to right sequentially and top to bottom 2
1. Single qudit operations Single qudit cards act only on one qudit and are placed beneath the qudit on which they should act on. The cards: 4x I Identity operation. It does nothing. 4x X X1 and X2 operation in 3D; X operation in 2D 4x Y Y1 and Y2 operation in 3D; Y operation in 2D 4x Z Z1 and Z2 operation in 3D; Z operation in 2D 15x Hadamard H1, H2 and H3 operation in 3D; H1 and H2 operation in 2D A possible way to place cards and the respective evaluation in 2D could be: It is not allowed to leave empty spaces beneath a qudit. 3
2. Two qudit operations These cards act on two quantum states. The quantum operations can only be played on neighboring qudits. Tilting the card signifies on which neighboring state the quantum operation acts on. The cards: 9x CX CX operation. The chosen control and target are placed next to each other on the field. The card is placed on the control qudit and tilted to the target qudit. In the software a CX with control on the left and target on the right is entered as CXr (and vice versa). 8x Swap Swaps the state with the chosen neighboring state. A tilt of the card signifies which states are swapped. In the software, swapping a state with the neighboring state on the right is entered as SWAPr (and vice versa). Here, the state of player 1 acts as the control and the state of player 2 as the target of the CX gate. The swap card is tilted into the direction of the state, with which the qudit states should be swapped. 4
3. Other cards The cards: 2x Steal Draw a random card from someone else and play it immediately. 5x Cancel Cancel the operation of any card already played. They subsequently turn into identities and are entered as identities in the evaluation. The cancel card is placed on top of the card that should be nullified. It is then entered as an identity operation in the software. How to use the evaluation software • Run the evaluation application. Running the software in python is more powerful. The executable might crash for many players depending on the computer. • Choose if you want to play in 2 or 3 dimensions by clicking on the buttons in the top right. • Input the starting state o In 2D qubit values of 0 and 1 are allowed. In 3D the possible qudit values are 0, 1 and 2. • Input the played quantum logic gates, by clicking on the buttons in the right panel. o Remember that the quantum computer applies the operations sequentially from left to right and top to bottom. The gates must also be entered in that order. o Use the identity operation as a placeholder for empty spaces. • Define the number of measurements or use the default value of 100. • Click the ‘Calculate’-button to compute the winning state. The winning state is shown in the winning state text field, which is highlighted in yellow once the state is calculated. o If the calculate button is not enabled, some inputs are incorrect. Click the reset button next to it and enter the parameters again. o The winning state is the state, which includes the highest achieved qudit-value for at least one qudit and which was statistically measured the most often in the measurements. • Click on the ‘Reset’-button to evaluate the next round. 5
Note: • The more measurements, the smaller the deviation of the outcome from the theoretical probability is, i.e. less luck is involved. In other words: one measurement leads to a pretty random result. • The complete state is displayed at the bottom. It is the quantum state before its projection onto a single state through a measurement. A first round played with 4 players in 3D in which player 1 starts with a qudit value of 0, player 2 with 2, player 3 with 1 and player 4 with 0 could for example be: Since the winning state is 2111, player 1 earns 2 and the other players 1 point in this round. Rookie version: “Finite Fun in Flatland” • This simplified version helps to understand the game and to get ready for having endless fun in high dimensions. • The differences during the full game described above are the following: o The game is played in 2D. The H3 cards are removed. o In every round, the players starting with the starting state 0. o The players are only allowed to put cards on their own qubit. 6
Truth tables of the quantum gates 7
Credits By the Experimental Quantum Optics Group Lea Kopf, Markus Hiekkamäki, Shashi Prabhakar, Robert Fickler Tampere University 2021 Special thanks to Ilkka Kylänpää for the help with software related issues. NOTE: The general idea is strongly based on the great card game Q|Cards> by Oskari Kerppo, Jorden Senior, Sabrina Maniscallo, Guillermo Garcia-Perez, Samuli Jääskeläinen, Sylvia Smatanova, Krista Erkkilä, Elie Abraham, which is a very similar game using only qubits. It can be downloaded here: https://zhamul.itch.io/qcards 8
You can also read