Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Commit 6136aba

Browse files
authored
Merge pull request #896 from nonhermitian/add_other_optims
Add other optimization notebooks and fixes
2 parents 1eed06a + dd3be3d commit 6136aba

6 files changed

Lines changed: 1127 additions & 16980 deletions

File tree

tutorials/aqua/optimization/1_optimization_problems.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# Quadratically Constrained Quadratic Programs\n",
8-
"The latest version of this notebook is available on https://github.com/Qiskit/qiskit/tree/master/docs/tutorials."
7+
"# Quadratically Constrained Quadratic Programs"
98
]
109
},
1110
{
@@ -22,6 +21,7 @@
2221
"In this tutorial, we briefly introduce how to build optimization problems using Qiskit's optimization module.\n",
2322
"Qiskit introduces the `QuadraticProgram` class to make a model of an optimization problem.\n",
2423
"More precicely, it deals with quadratically constrained quadratic programs given as follows:\n",
24+
"\n",
2525
"$$\n",
2626
"\\begin{align}\n",
2727
"\\text{minimize}\\quad& x^\\top Q_0 x + c^\\top x\\\\\n",
@@ -30,6 +30,7 @@
3030
"& l_i \\leq x_i \\leq u_i, \\quad 1,\\dots,i,\\dots,n,\n",
3131
"\\end{align}\n",
3232
"$$\n",
33+
"\n",
3334
"where the $Q_i$ are $n \\times n$ matrices, $A$ is a $m \\times n$ matrix , $x$, and $c$ are $n$-dimensional vectors, $b$ is an $m$-dimensional vector, and where $x$ can defined as binary, integer, or continuous variables.\n",
3435
"In addition to \"$\\leq$\" constraints 'QuadraticProgram' also supports \"$\\geq$\" and \"$=$\"."
3536
]
@@ -722,8 +723,8 @@
722723
{
723724
"data": {
724725
"text/html": [
725-
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>0.18.3</td></tr><tr><td>Terra</td><td>0.14.1</td></tr><tr><td>Aer</td><td>0.5.1</td></tr><tr><td>Ignis</td><td>0.3.0</td></tr><tr><td>Aqua</td><td>0.8.0.dev0+7056f9b</td></tr><tr><td>IBM Q Provider</td><td>0.6.1</td></tr><tr><th>System information</th></tr><tr><td>Python</td><td>3.7.7 (default, Apr 18 2020, 02:59:53) \n",
726-
"[GCC 9.3.0]</td></tr><tr><td>OS</td><td>Linux</td></tr><tr><td>CPUs</td><td>4</td></tr><tr><td>Memory (Gb)</td><td>15.143501281738281</td></tr><tr><td colspan='2'>Wed May 06 22:35:12 2020 JST</td></tr></table>"
726+
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>0.19.1</td></tr><tr><td>Terra</td><td>0.14.1</td></tr><tr><td>Aer</td><td>0.5.1</td></tr><tr><td>Ignis</td><td>0.3.0</td></tr><tr><td>Aqua</td><td>0.7.0</td></tr><tr><td>IBM Q Provider</td><td>0.7.0</td></tr><tr><th>System information</th></tr><tr><td>Python</td><td>3.7.7 (default, Mar 26 2020, 10:32:53) \n",
727+
"[Clang 4.0.1 (tags/RELEASE_401/final)]</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>4</td></tr><tr><td>Memory (Gb)</td><td>16.0</td></tr><tr><td colspan='2'>Fri May 08 08:55:19 2020 EDT</td></tr></table>"
727728
],
728729
"text/plain": [
729730
"<IPython.core.display.HTML object>"

0 commit comments

Comments
 (0)