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

Commit 6419a62

Browse files
authored
Merge pull request #924 from Cryoris/remove-pprint
Remove pprint_as_string from optimization
2 parents 7a538d0 + fd7f819 commit 6419a62

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

tutorials/optimization/1_quadratic_program.ipynb

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"cell_type": "code",
54-
"execution_count": 1,
54+
"execution_count": 4,
5555
"metadata": {},
5656
"outputs": [],
5757
"source": [
@@ -62,8 +62,7 @@
6262
"cell_type": "markdown",
6363
"metadata": {},
6464
"source": [
65-
"You start with an empty model.\n",
66-
"You can display your optimization problem with a method `pprint_as_string` and `print_as_lp_string`."
65+
"You start with an empty model. How to add variables and constraints to a model is explained in the section \"Directly constructing a `QuadraticProgram`\"."
6766
]
6867
},
6968
{
@@ -85,7 +84,7 @@
8584
},
8685
{
8786
"cell_type": "code",
88-
"execution_count": 2,
87+
"execution_count": 5,
8988
"metadata": {},
9089
"outputs": [
9190
{
@@ -131,7 +130,7 @@
131130
},
132131
{
133132
"cell_type": "code",
134-
"execution_count": 3,
133+
"execution_count": 6,
135134
"metadata": {},
136135
"outputs": [
137136
{
@@ -186,7 +185,7 @@
186185
},
187186
{
188187
"cell_type": "code",
189-
"execution_count": 4,
188+
"execution_count": 7,
190189
"metadata": {},
191190
"outputs": [
192191
{
@@ -232,7 +231,7 @@
232231
},
233232
{
234233
"cell_type": "code",
235-
"execution_count": 5,
234+
"execution_count": 8,
236235
"metadata": {},
237236
"outputs": [
238237
{
@@ -283,7 +282,7 @@
283282
},
284283
{
285284
"cell_type": "code",
286-
"execution_count": 6,
285+
"execution_count": 9,
287286
"metadata": {},
288287
"outputs": [
289288
{
@@ -321,7 +320,7 @@
321320
},
322321
{
323322
"cell_type": "code",
324-
"execution_count": 7,
323+
"execution_count": 10,
325324
"metadata": {},
326325
"outputs": [
327326
{
@@ -371,7 +370,7 @@
371370
},
372371
{
373372
"cell_type": "code",
374-
"execution_count": 8,
373+
"execution_count": 11,
375374
"metadata": {},
376375
"outputs": [
377376
{
@@ -431,7 +430,7 @@
431430
},
432431
{
433432
"cell_type": "code",
434-
"execution_count": 9,
433+
"execution_count": 12,
435434
"metadata": {},
436435
"outputs": [
437436
{
@@ -481,7 +480,7 @@
481480
},
482481
{
483482
"cell_type": "code",
484-
"execution_count": 10,
483+
"execution_count": 13,
485484
"metadata": {},
486485
"outputs": [
487486
{
@@ -534,7 +533,7 @@
534533
},
535534
{
536535
"cell_type": "code",
537-
"execution_count": 11,
536+
"execution_count": 14,
538537
"metadata": {},
539538
"outputs": [
540539
{
@@ -562,7 +561,7 @@
562561
},
563562
{
564563
"cell_type": "code",
565-
"execution_count": 12,
564+
"execution_count": 15,
566565
"metadata": {},
567566
"outputs": [
568567
{
@@ -622,7 +621,7 @@
622621
},
623622
{
624623
"cell_type": "code",
625-
"execution_count": 13,
624+
"execution_count": 16,
626625
"metadata": {},
627626
"outputs": [
628627
{
@@ -663,7 +662,7 @@
663662
},
664663
{
665664
"cell_type": "code",
666-
"execution_count": 14,
665+
"execution_count": 17,
667666
"metadata": {},
668667
"outputs": [
669668
{
@@ -696,7 +695,7 @@
696695
},
697696
{
698697
"cell_type": "code",
699-
"execution_count": 15,
698+
"execution_count": 18,
700699
"metadata": {},
701700
"outputs": [
702701
{
@@ -717,14 +716,14 @@
717716
},
718717
{
719718
"cell_type": "code",
720-
"execution_count": 16,
719+
"execution_count": 19,
721720
"metadata": {},
722721
"outputs": [
723722
{
724723
"data": {
725724
"text/html": [
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.4 (default, Aug 13 2019, 15:17:50) \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>6</td></tr><tr><td>Memory (Gb)</td><td>16.0</td></tr><tr><td colspan='2'>Mon May 11 08:44:58 2020 CEST</td></tr></table>"
725+
"<h3>Version Information</h3><table><tr><th>Qiskit Software</th><th>Version</th></tr><tr><td>Qiskit</td><td>None</td></tr><tr><td>Terra</td><td>0.15.0.dev0+2e8582d</td></tr><tr><td>Aer</td><td>0.6.0</td></tr><tr><td>Ignis</td><td>0.4.0.dev0+be205e2</td></tr><tr><td>Aqua</td><td>0.8.0.dev0+8d17693</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.5 (default, Nov 1 2019, 02:16:32) \n",
726+
"[Clang 11.0.0 (clang-1100.0.33.8)]</td></tr><tr><td>OS</td><td>Darwin</td></tr><tr><td>CPUs</td><td>2</td></tr><tr><td>Memory (Gb)</td><td>16.0</td></tr><tr><td colspan='2'>Fri Jun 19 09:02:44 2020 CEST</td></tr></table>"
728727
],
729728
"text/plain": [
730729
"<IPython.core.display.HTML object>"

0 commit comments

Comments
 (0)