A quantum game modeling of pandemic (QHack 2022)

Overview

Abstract

In the regime of a global pandemic, leaders around the world need to consider various possibilities and take conscious actions to protect their citizens from the infectious virus. In the quantum world that we model in this game, every possible situation exists as a superposed state. Nothing is decisive at all. You, as the leader of this quantum city, need to suppress the possibility, or amplitude of states representing bad situations. Lastly, the mandatory PCR test for every citizen is waiting you---it 'measures' the city and will show whether your policies rescued the city or not. Predict, act, and measure!

The Game

Objectives

  • Obtain negative result for everyone at the last PCR test.

Contents

  • Mode
    In this game, there are two modes: Pure Quandemic and Mixed Quandemic. From the former one, the state of the citizens is always pure state. All the actions are unitary. On the other hand, when using the latter one, the state of the citizens can be mixed state. Considering a density matrix will be a good strategy. Most of actions are unitary, however, swapping two citiznes lead to non-unitary evolution. More details are described at 'Regular Action: Move Citizens (Swap)'. Input : write 1(0) if you want to play 'Mixed Quandemic'('Pure Quandemic'). ex) 1

  • Level
    The level indicates the initial number of infected people. However, indices of infected people are selected randomly. Input : write the number of level. ex) 3

  • Citizens
    A quantum circuit with N by M qubits represents a city that N*M citizens live with a deadly virus. 0's and 1's appearing on the computational basis of this system corresponds to healthy and infected states, respectively. Since the people live in a quantum world, the city stays in a superposition of possible infection states!

  • Regular Action: PCR Testing (Single Person)
    A PCR test corresponds to measurement on a specific qubit, or a citizen of this city. Not only obtains a decisive result about the citizen's infection status, the test destroys possibility of the city to be in states which counter the test result. In quantum-like words, the measurement projects previous state into a subspace contains the measured result. Input : write the index of person you want to inspect. ex) 4

  • Special Action: PCR Testing (Total Inspection)
    For sake of the player, one can measure states of all qubits at once for only one time during the game. It will remove superposition of the city's state, but the state will quickly branch and involve possibilities as time goes on. Input : write 1(0) if you want(do not want) to do the action. ex) 1

  • Regular Action: Move Citizens (Swap)
    In each turn, player should choose pairs of citizens to swap position. However, when a player use 'Mixed Quandemic' mode, they might additionally catch the virus since the swapped citizens can be exposed to the contaminated environment while swapping each other. The newly possible infected state is involved to the game as superposition. Simply, a quantum SWAP gate and a Kraus operator(only for 'Mixed Quandemic' mode) which puts 0 to 1 at a fixed possibility successively applied for each pair of citizens that the player selected. Players are allowed to swap 'neighboring' citizens only. Input : write the pairs of people's indices for inspection. If you want to inspect (0,1) and (3,4) --> ex) 0,1 3,4

  • Regular Action: Send Hospital
    There are two hospitals in this city placed at the certain area.

    • The 'H' hospital
      The 'H' hospital is placed on boundaries of the city. For example, in 3x3 city, 'H' hospital is placed at position 0, 1, 2, 3, 5, 6, 7, 8. The 'H' hospital works by applying Hadamard gate if player selects its position. Be careful that it might increase probability of infection if it is used in a wrong way!

    • The Pauli's X hospital
      The Pauli's X hospital is placed at the center of the city. It acts to the citizen at the center by applying X gate. So the hospital will cure a citizen if one is infected, but it will infect a healthy one at the same time! This hospital has the perfect medicine, but it is located at the center of the city.. It is really easy to get infected via passing through the central city.

Input : write the indices of people who wants to go to the hospital. ex) 0 1 3

In each turn, the player should select which citizens to send hospital. It is only possible to send citizens that are placed on the hostpial area.

  • The last, mandatory PCR test
    This test decides whether your critical choices during the pandemic were successful or not. This very final operation measures all qubits of the system as the total survey. Even if a single 1 exists in your final state, it will move, copy itself and spread throughout your city again. No way! The game's objective is to obtain the result |00...00> and to free your city from the pandemic forever! Input : write 1(0) if you want(do not want) to do the action. ex) 1

Demonstration

Title_Image

We first select pairs of citizen to swap position, indicated as blue edges. Then, select which citizens to send hospital, indicated as light-red boxes. Press 'Next' button to progress to next step. We can either check one person's PCR testing result, or use the total PCR inspection chance (limited to once per game). Execute GUI version of the game by python3 GUI_Quandemics.py.

Captured Scene

  • Example of the 'GUI' version

Title_Image

It is the interim state of the 'GUI' version game. #0 person visited the 'H' hospital. By the way, we had inspected the PCR test for the #2 person, and his/her result was positive.
Owner
Yoonjae Chung
KAIST EE & Physics Undergraduate
Yoonjae Chung
Towards Understanding Quality Challenges of the Federated Learning: A First Look from the Lens of Robustness

FL Analysis This repository contains the code and results for the paper "Towards Understanding Quality Challenges of the Federated Learning: A First L

3 Oct 17, 2022
Realtime YOLO Monster Detection With Non Maximum Supression

Realtime-YOLO-Monster-Detection-With-Non-Maximum-Supression Table of Contents In

5 Oct 07, 2022
These are the materials for the paper "Few-Shot Out-of-Domain Transfer Learning of Natural Language Explanations"

Few-shot-NLEs These are the materials for the paper "Few-Shot Out-of-Domain Transfer Learning of Natural Language Explanations". You can find the smal

Yordan Yordanov 0 Oct 21, 2022
Code from PropMix, accepted at BMVC'21

PropMix: Hard Sample Filtering and Proportional MixUp for Learning with Noisy Labels This repository is the official implementation of Hard Sample Fil

6 Dec 21, 2022
Vis2Mesh: Efficient Mesh Reconstruction from Unstructured Point Clouds of Large Scenes with Learned Virtual View Visibility ICCV2021

Vis2Mesh This is the offical repository of the paper: Vis2Mesh: Efficient Mesh Reconstruction from Unstructured Point Clouds of Large Scenes with Lear

71 Dec 25, 2022
The (Official) PyTorch Implementation of the paper "Deep Extraction of Manga Structural Lines"

MangaLineExtraction_PyTorch The (Official) PyTorch Implementation of the paper "Deep Extraction of Manga Structural Lines" Usage model_torch.py [sourc

Miaomiao Li 82 Jan 02, 2023
Code for "Learning Skeletal Graph Neural Networks for Hard 3D Pose Estimation" ICCV'21

Skeletal-GNN Code for "Learning Skeletal Graph Neural Networks for Hard 3D Pose Estimation" ICCV'21 Various deep learning techniques have been propose

37 Oct 23, 2022
Official implementation for NIPS'17 paper: PredRNN: Recurrent Neural Networks for Predictive Learning Using Spatiotemporal LSTMs.

PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning The predictive learning of spatiotemporal sequences aims to generate future

THUML: Machine Learning Group @ THSS 243 Dec 26, 2022
A deep learning tabular classification architecture inspired by TabTransformer with integrated gated multilayer perceptron.

The GatedTabTransformer. A deep learning tabular classification architecture inspired by TabTransformer with integrated gated multilayer perceptron. C

Radi Cho 60 Dec 15, 2022
Code for "MetaMorph: Learning Universal Controllers with Transformers", Gupta et al, ICLR 2022

MetaMorph: Learning Universal Controllers with Transformers This is the code for the paper MetaMorph: Learning Universal Controllers with Transformers

Agrim Gupta 50 Jan 03, 2023
The Malware Open-source Threat Intelligence Family dataset contains 3,095 disarmed PE malware samples from 454 families

MOTIF Dataset The Malware Open-source Threat Intelligence Family (MOTIF) dataset contains 3,095 disarmed PE malware samples from 454 families, labeled

Booz Allen Hamilton 112 Dec 13, 2022
PyTorch implementation of MulMON

MulMON This repository contains a PyTorch implementation of the paper: Learning Object-Centric Representations of Multi-object Scenes from Multiple Vi

NanboLi 16 Nov 03, 2022
A gesture recognition system powered by OpenPose, k-nearest neighbours, and local outlier factor.

OpenHands OpenHands is a gesture recognition system powered by OpenPose, k-nearest neighbours, and local outlier factor. Currently the system can iden

Paul Treanor 12 Jan 10, 2022
SpanNER: Named EntityRe-/Recognition as Span Prediction

SpanNER: Named EntityRe-/Recognition as Span Prediction Overview | Demo | Installation | Preprocessing | Prepare Models | Running | System Combination

NeuLab 104 Dec 17, 2022
Person Re-identification

Person Re-identification Final project of Computer Vision Table of content Person Re-identification Table of content Students: Proposed method Dataset

Nguyễn Hoàng Quân 4 Jun 17, 2021
ReferFormer - Official Implementation of ReferFormer

The official implementation of the paper: Language as Queries for Referring Video Object Segmentation Language as Queries for Referring Video Object S

Jonas Wu 232 Dec 29, 2022
Robust Video Matting in PyTorch, TensorFlow, TensorFlow.js, ONNX, CoreML!

Robust Video Matting in PyTorch, TensorFlow, TensorFlow.js, ONNX, CoreML!

Peter Lin 6.5k Jan 04, 2023
Godot RL Agents is a fully Open Source packages that allows video game creators

Godot RL Agents The Godot RL Agents is a fully Open Source packages that allows video game creators, AI researchers and hobbiest the opportunity to le

Edward Beeching 326 Dec 30, 2022
Geometry-Aware Learning of Maps for Camera Localization (CVPR2018)

Geometry-Aware Learning of Maps for Camera Localization This is the PyTorch implementation of our CVPR 2018 paper "Geometry-Aware Learning of Maps for

NVIDIA Research Projects 321 Nov 26, 2022
NU-Wave: A Diffusion Probabilistic Model for Neural Audio Upsampling

NU-Wave: A Diffusion Probabilistic Model for Neural Audio Upsampling For Official repo of NU-Wave: A Diffusion Probabilistic Model for Neural Audio Up

Rishikesh (ऋषिकेश) 38 Oct 11, 2022