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
A 3D sparse LBM solver implemented using Taichi

taichi_LBM3D Background Taichi_LBM3D is a 3D lattice Boltzmann solver with Multi-Relaxation-Time collision scheme and sparse storage structure impleme

Jianhui Yang 121 Jan 06, 2023
This repo contains the official implementations of EigenDamage: Structured Pruning in the Kronecker-Factored Eigenbasis

EigenDamage: Structured Pruning in the Kronecker-Factored Eigenbasis This repo contains the official implementations of EigenDamage: Structured Prunin

Chaoqi Wang 107 Apr 20, 2022
Enigma-Plus - Python based Enigma machine simulator with some extra features

Enigma-Plus Python based Enigma machine simulator with some extra features Examp

1 Jan 05, 2022
[CVPR 2022] Thin-Plate Spline Motion Model for Image Animation.

[CVPR2022] Thin-Plate Spline Motion Model for Image Animation Source code of the CVPR'2022 paper "Thin-Plate Spline Motion Model for Image Animation"

yoyo-nb 1.4k Dec 30, 2022
Official implementation for paper Knowledge Bridging for Empathetic Dialogue Generation (AAAI 2021).

Knowledge Bridging for Empathetic Dialogue Generation This is the official implementation for paper Knowledge Bridging for Empathetic Dialogue Generat

Qintong Li 50 Dec 20, 2022
Official code repository for A Simple Long-Tailed Rocognition Baseline via Vision-Language Model.

BALLAD This is the official code repository for A Simple Long-Tailed Rocognition Baseline via Vision-Language Model. Requirements Python3 Pytorch(1.7.

peng gao 42 Nov 26, 2022
Food Drinks and groceries Images Multi Lingual (FooDI-ML) dataset.

Food Drinks and groceries Images Multi Lingual (FooDI-ML) dataset.

41 Jan 04, 2023
Supercharging Imbalanced Data Learning WithCausal Representation Transfer

ECRT: Energy-based Causal Representation Transfer Code for Supercharging Imbalanced Data Learning With Energy-basedContrastive Representation Transfer

Zidi Xiu 11 May 02, 2022
State of the Art Neural Networks for Deep Learning

pyradox This python library helps you with implementing various state of the art neural networks in a totally customizable fashion using Tensorflow 2

Ritvik Rastogi 60 May 29, 2022
VID-Fusion: Robust Visual-Inertial-Dynamics Odometry for Accurate External Force Estimation

VID-Fusion VID-Fusion: Robust Visual-Inertial-Dynamics Odometry for Accurate External Force Estimation Authors: Ziming Ding , Tiankai Yang, Kunyi Zhan

ZJU FAST Lab 86 Nov 18, 2022
Type4Py: Deep Similarity Learning-Based Type Inference for Python

Type4Py: Deep Similarity Learning-Based Type Inference for Python This repository contains the implementation of Type4Py and instructions for re-produ

Software Analytics Lab 45 Dec 15, 2022
High-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently.

TL;DR Ignite is a high-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently. Click on the image to

4.2k Jan 01, 2023
Companion code for the paper Theoretical characterization of uncertainty in high-dimensional linear classification

Companion code for the paper Theoretical characterization of uncertainty in high-dimensional linear classification Usage The required packages are lis

0 Feb 07, 2022
Implementation of ECCV20 paper: the devil is in classification: a simple framework for long-tail object detection and instance segmentation

Implementation of our ECCV 2020 paper The Devil is in Classification: A Simple Framework for Long-tail Instance Segmentation This repo contains code o

twang 98 Sep 17, 2022
TorchMD-Net provides state-of-the-art graph neural networks and equivariant transformer neural networks potentials for learning molecular potentials

TorchMD-net TorchMD-Net provides state-of-the-art graph neural networks and equivariant transformer neural networks potentials for learning molecular

TorchMD 104 Jan 03, 2023
This repository contains the source code for the paper Tutorial on amortized optimization for learning to optimize over continuous domains by Brandon Amos

Tutorial on Amortized Optimization This repository contains the source code for the paper Tutorial on amortized optimization for learning to optimize

Meta Research 144 Dec 26, 2022
covid question answering datasets and fine tuned models

Covid-QA Fine tuned models for question answering on Covid-19 data. Hosted Inference This model has been contributed to huggingface.Click here to see

Abhijith Neil Abraham 19 Sep 09, 2021
Search and filter videos based on objects that appear in them using convolutional neural networks

Thingscoop: Utility for searching and filtering videos based on their content Description Thingscoop is a command-line utility for analyzing videos se

Anastasis Germanidis 354 Dec 04, 2022
[NeurIPS'21] "AugMax: Adversarial Composition of Random Augmentations for Robust Training" by Haotao Wang, Chaowei Xiao, Jean Kossaifi, Zhiding Yu, Animashree Anandkumar, and Zhangyang Wang.

AugMax: Adversarial Composition of Random Augmentations for Robust Training Haotao Wang, Chaowei Xiao, Jean Kossaifi, Zhiding Yu, Anima Anandkumar, an

VITA 112 Nov 07, 2022
BMW TechOffice MUNICH 148 Dec 21, 2022