|
4 | 4 | "cell_type": "markdown", |
5 | 5 | "metadata": {}, |
6 | 6 | "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" |
9 | 8 | ] |
10 | 9 | }, |
11 | 10 | { |
|
22 | 21 | "In this tutorial, we briefly introduce how to build optimization problems using Qiskit's optimization module.\n", |
23 | 22 | "Qiskit introduces the `QuadraticProgram` class to make a model of an optimization problem.\n", |
24 | 23 | "More precicely, it deals with quadratically constrained quadratic programs given as follows:\n", |
| 24 | + "\n", |
25 | 25 | "$$\n", |
26 | 26 | "\\begin{align}\n", |
27 | 27 | "\\text{minimize}\\quad& x^\\top Q_0 x + c^\\top x\\\\\n", |
|
30 | 30 | "& l_i \\leq x_i \\leq u_i, \\quad 1,\\dots,i,\\dots,n,\n", |
31 | 31 | "\\end{align}\n", |
32 | 32 | "$$\n", |
| 33 | + "\n", |
33 | 34 | "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", |
34 | 35 | "In addition to \"$\\leq$\" constraints 'QuadraticProgram' also supports \"$\\geq$\" and \"$=$\"." |
35 | 36 | ] |
|
722 | 723 | { |
723 | 724 | "data": { |
724 | 725 | "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>" |
727 | 728 | ], |
728 | 729 | "text/plain": [ |
729 | 730 | "<IPython.core.display.HTML object>" |
|
0 commit comments