Skip to content

ionq-samples/SCQuantathon-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Instant Insanity challenge from IonQ

What is the Instant Insanity puzzle?

The Instant Insanity puzzle is a classic recreational mathematics problem involving four cubes. Each face of the four cubes is colored with one of four distinct colors (e.g., Red, Blue, Green, Yellow). The objective of the puzzle is to stack the four cubes in a column such that all four colors appear exactly once on each of the four vertical sides of the stack.

You can start with the interactive visualization: https://instantinsanity.z20.web.core.windows.net/

A strong starting point for understanding this puzzle, its history, and classical encoding and solutions can be found on its Wikipedia page. https://en.wikipedia.org/wiki/Instant_Insanity

5-qubit/cube rotation encoding (netwrok of switches): https://instantinsanity.z20.web.core.windows.net/switches.html

The Challenge: Solving Instant Insanity with a QC

For this hackathon, your task is to tackle the Instant Insanity puzzle using a quantum computer. A conventional approach includes the following essential steps; however, feel free to develop innovative concepts:

  1. Problem Encoding: Develop a method to encode the classical state of the Instant Insanity puzzle (i.e., the configuration of the cubes and their faces) into a quantum representation suitable for a quantum computer. For a potentially elegant encoding, consider using Dicke states. They are a natural fit for enforcing the 'exactly one' conditions of the puzzle.
  2. Objective Function Formulation: Formulate an objective function that, when minimized on a quantum computer, yields a valid solution to the Instant Insanity puzzle. This function should represent the conditions for a correct solution (all four colors appearing once on each vertical side). Validate your Hamiltonian classically first. Run a brute-force search to find the known solution to the puzzle. Then, check that this specific arrangement of cubes yields the minimum value (the ground state) for your objective function. This is a crucial step to ensure your model works before you even run it on quantum hardware.
  3. Quantum Solution: Implement a quantum algorithm to find the solution to the Instant Insanity puzzle based on your encoding and objective function. This may involve using techniques like variational Quantum Imaginary Time Evolution (varQITE), Quantum Approximate Optimization Algorithm (QAOA), Variational Quantum Eigensolver (VQE), or other relevant quantum optimization approaches.

The notebook in this repository demonstrates how to solve the MaxCut problem using the varQITE algorithm, making it an excellent starting point for learning this approach.

We encourage participants to explore different quantum approaches and demonstrate the power of quantum computing in solving this classic combinatorial problem.

Submissions will be evaluated on the novelty and originality of their approach, with the aim of fostering a collaborative publication.

Open in qBraid

Open in Colab

https://colab.research.google.com/github/ionq-samples/SCQuantathon-v2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published