sagnikb / qaoa-queens

Solving the N-queens problem using QAOA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qaoa-queens

We use QAOA to find solutions to the N queens problem. The $N$ queens problem can be viewed as a generalized exact cover problem, which can then be reduced to an exact cover problem. We solve the resulting exact cover problem using QAOA, with the corresponding Hamiltonian being obtained via the technique used in https://arxiv.org/abs/1912.10499.

To run, simply download and run the notebook! You'll need Pennylane to be installed.

About

Solving the N-queens problem using QAOA

License:MIT License


Languages

Language:HTML 29.6%Language:CSS 26.8%Language:JavaScript 22.7%Language:Jupyter Notebook 17.1%Language:Python 3.8%