Skip to content

Commit 934b961

Browse files
committed
Migrate tutorials from qiskit-tutorials
2 parents 5a21ca1 + c0a386c commit 934b961

11 files changed

+6098
-7
lines changed

docs/tutorials/01_algorithms_introduction.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
}
6262
],
6363
"source": [
64-
"ansatz.decompose().draw(\"mpl\", style=\"iqx\")"
64+
"ansatz.decompose().draw('mpl', style='iqx')"
6565
]
6666
},
6767
{
@@ -79,7 +79,7 @@
7979
"\n",
8080
"Algorithms rely on the primitives to evaluate expectation values or sample circuits. The primitives can be based on a simulator or real device and can be used interchangeably in the algorithms, as they all implement the same interface.\n",
8181
"\n",
82-
"In the VQE, we have to evaluate expectation values, so for example we can use the `qiskit.primitives.Estimator` which is shipped with the default Qiskit Terra installation."
82+
"In the VQE, we have to evaluate expectation values, so for example we can use the [qiskit.primitives.Estimator](https://qiskit.org/documentation/stubs/qiskit.primitives.Estimator.html) which is shipped with the default Qiskit Terra installation."
8383
]
8484
},
8585
{
@@ -97,7 +97,7 @@
9797
"cell_type": "markdown",
9898
"metadata": {},
9999
"source": [
100-
"This estimator uses an exact, statevector simulation to evaluate the expectation values. We can also use a shot-based and noisy simulators or real backends instead. For more information of the simulators you can check out [Qiskit Aer](https://qiskit.org/documentation/apidoc/aer_primitives.html) and for the actual hardware [Qiskit IBM Runtime](https://qiskit.org/documentation/partners/qiskit_ibm_runtime/).\n",
100+
"This estimator uses an exact, statevector simulation to evaluate the expectation values. We can also use a shot-based and noisy simulators or real backends instead. For more information of the simulators you can check out [Qiskit Aer](https://qiskit.org/ecosystem/aer/apidocs/aer_primitives.html) and for the actual hardware [Qiskit IBM Runtime](https://qiskit.org/documentation/partners/qiskit_ibm_runtime/).\n",
101101
"\n",
102102
"With all the ingredients ready, we can now instantiate the VQE:"
103103
]
@@ -117,7 +117,7 @@
117117
"cell_type": "markdown",
118118
"metadata": {},
119119
"source": [
120-
"Now we can call the [compute_mininum_eigenvalue()](https://qiskit.org/documentation/stubs/qiskit_algorithms.minimum_eigensolvers.VQE.compute_minimum_eigenvalue.html#qiskit_algorithms.minimum_eigensolvers.VQE.compute_minimum_eigenvalue) method. The latter is the interface of choice for the application modules, such as Nature and Optimization, in order that they can work interchangeably with any algorithm within the specific category."
120+
"Now we can call the [compute_mininum_eigenvalue()](https://qiskit.org/documentation/stubs/qiskit.algorithms.minimum_eigensolvers.VQE.compute_minimum_eigenvalue.html#qiskit.algorithms.minimum_eigensolvers.VQE.compute_minimum_eigenvalue) method. The latter is the interface of choice for the application modules, such as Nature and Optimization, in order that they can work interchangeably with any algorithm within the specific category."
121121
]
122122
},
123123
{
@@ -205,9 +205,9 @@
205205
"\n",
206206
"To close off let's also change the estimator primitive inside the a VQE. Maybe you're satisfied with the simulation results and now want to use a shot-based simulator, or run on hardware!\n",
207207
"\n",
208-
"In this example we're changing to a shot-based estimator, still using Qiskit Terra's reference primitive. However you could replace the primitive by e.g. Qiskit Aer's estimator (`qiskit_aer.primitives.Estimator`) or even a real backend (`qiskit_ibm_runtime.Estimator`).\n",
208+
"In this example we're changing to a shot-based estimator, still using Qiskit Terra's reference primitive. However you could replace the primitive by e.g. Qiskit Aer's estimator ([qiskit_aer.primitives.Estimator](https://qiskit.org/ecosystem/aer/stubs/qiskit_aer.primitives.Estimator.html#qiskit_aer.primitives.Estimator)) or even a real backend ([qiskit_ibm_runtime.Estimator](https://qiskit.org/documentation/partners/qiskit_ibm_runtime/stubs/qiskit_ibm_runtime.Estimator.html#qiskit_ibm_runtime.Estimator)).\n",
209209
"\n",
210-
"For noisy loss functions, the SPSA optimizer typically performs well, so we also update the optimizer. See also the [noisy VQE tutorial](https://qiskit.org/documentation/tutorials/algorithms/03_vqe_simulation_with_noise.html) for more details on shot-based and noisy simulations."
210+
"For noisy loss functions, the SPSA optimizer typically performs well, so we also update the optimizer. See also the [noisy VQE tutorial](https://qiskit.org/documentation/tutorials/algorithms/03_vqe_simulation_with_noise.html) for more details on shot-based and noisy simulations. "
211211
]
212212
},
213213
{
@@ -335,4 +335,4 @@
335335
},
336336
"nbformat": 4,
337337
"nbformat_minor": 2
338-
}
338+
}

docs/tutorials/02_vqe_advanced_options.ipynb

Lines changed: 550 additions & 0 deletions
Large diffs are not rendered by default.

docs/tutorials/03_vqe_simulation_with_noise.ipynb

Lines changed: 468 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)