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

Commit 1ca9b93

Browse files
authored
Merge pull request #1103 from dongsin-kim/patch-2
Fixed a typo on 04_vqe_advanced.ipynb
2 parents 27a20d1 + 1d21bd1 commit 1ca9b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/algorithms/04_vqe_advanced.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"\n",
173173
"For most cases letting VQE create a suitable instance is sufficient. However the Qiskit Aer qasm_simulator supports a snapshot instruction that can be used in conjunction with the operator expectation computation. If used then the outcome is ideal, i.e. like the statevector simulator, and has no shot noise. Since people normally choose the qasm_simulator to have shot noise (sampling noise), and be more like a real-device outcome, VQE has an `include_custom` flag that is passed on to the ExpectationFactory. When using Aer qasm simulator, and this is set `True`, the factory will return `AerPauliExpectation` which uses the snapshot instruction, when `False`, default, then the regular `PauliExpectation` is returned.\n",
174174
"\n",
175-
"The following example shows `include_custom=True` where the outcome matches the statevector simulator. In fact it can be better/faster to do this than use the statevector_simulator directly. This is because in the latter case when the Hamiltonian is a sum of Paulis it must be converted to matrix form, and this is avoided when when using the snapshot instruction done when include_custom is True."
175+
"The following example shows `include_custom=True` where the outcome matches the statevector simulator. In fact it can be better/faster to do this than use the statevector_simulator directly. This is because in the latter case when the Hamiltonian is a sum of Paulis it must be converted to matrix form, and this is avoided when using the snapshot instruction done when include_custom is True."
176176
]
177177
},
178178
{

0 commit comments

Comments
 (0)