Skip to content

Commit

Permalink
Update notebook for consistency with website presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshioka1128 committed Sep 9, 2024
1 parent 9c607cc commit 9a66642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions examples/16_FQAOA_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"\n",
"- Broad Applicability: The Hamiltonian design guideline benefits QAOA and extends to other algorithms like Grover adaptive search and quantum phase estimation, making it a versatile tool for solving constrained combinatorial optimization problems.\n",
"\n",
"This notebook describes the implementation of FQAOA, illustrates its application through various examples, and provides insight into FQAOA's superior performance in constrained combinatorial optimization tasks.\n",
"This notebook describes the implementation of FQAOA, illustrates its application through an example portfolio optimization problem, and provides insight into FQAOA's superior performance in constrained combinatorial optimization tasks.\n",
"\n",
"### Quadratic Constrained Binary Optimization Problems\n",
"The constrained combinatorial optimization problem for a quadratic binary cost function $C_{\\boldsymbol x}$ can be written in the following form:\n",
"The constrained combinatorial optimization problem for a quadratic binary cost function $C_{\\boldsymbol x}$ can be written in the following form:\n",
"$${\\boldsymbol x}^* = \\arg \\min_{\\boldsymbol x} C_{\\boldsymbol x}\\qquad {\\rm s.t.} \\quad\\sum_{i=1}^{N} x_i = M,$$\n",
"with bit string ${\\boldsymbol x}\\in \\{0,1\\}^N$, where ${\\boldsymbol x}^*$ is the optimal solution.\n",
"This problem can be replaced by the minimum eigenvalue problem in the following steps.\n",
Expand Down Expand Up @@ -135,8 +135,8 @@
"source": [
"## Portfolio Optimization\n",
"\n",
"In the following, the [portfolio optimization problem](https://en.wikipedia.org/wiki/Portfolio_optimization) is taken as a constrained quadratic optimisation problem.\n",
"Start by creating an instance of the portfolio optimisation problem, using the `random_instance` method of the `PortfolioOptimisation`."
"In the following, the [portfolio optimization problem](https://en.wikipedia.org/wiki/Portfolio_optimization) is taken as a constrained quadratic optimization problem.\n",
"Start by creating an instance of the portfolio optimization problem, using the `random_instance` method of the `PortfolioOptimization`."
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions examples/17_FQAOA_advanced_parameterization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"id": "bb6a05c9-82f7-431b-b60f-de61cd71d3cf",
"metadata": {},
"source": [
"Start by creating an instance of the portfolio optimisation problem, using the `random_instance` method of `the PortfolioOptimisation` class."
"Start by creating an instance of the portfolio optimization problem, using the `random_instance` method of the `PortfolioOptimization` class."
]
},
{
Expand All @@ -59,7 +59,7 @@
"source": [
"## Quantum Annealing with FQAOA\n",
"\n",
"The framework of Fermionic QAOA (FQAOA) covers the Quantum Annealing (QA) framework [[1]](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.5.023071). In this note, we demonstrate that QA with FQAOA works for constrained combinatorial optimisation problems in practice and compare its performance with QA with conventional QAOA [[2]](https://arxiv.org/pdf/quant-ph/0001106)."
"The framework of Fermionic QAOA (FQAOA) covers the Quantum Annealing (QA) framework [[1]](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.5.023071). In this note, we demonstrate that QA with FQAOA works for constrained combinatorial optimization problems in practice and compare its performance with QA with conventional QAOA [[2]](https://arxiv.org/pdf/quant-ph/0001106)."
]
},
{
Expand Down

0 comments on commit 9a66642

Please sign in to comment.