Qiskit / qiskit-tutorials

A collection of Jupyter notebooks showing how to use the Qiskit SDK
Apache License 2.0
2.3k stars 1.29k forks source link

Add new VQD tutorial (using primitives) #1378

Closed ElePT closed 1 year ago

ElePT commented 1 year ago

Summary

After refactoring the VQE tutorials in #1376, I decided to add a new tutorial explaining the VQD algorithm (using primitives).

Details and comments

Blocked by #1376, as it replaces tutorial number 04, removed in that PR.

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Guillermo-Mijares-Vilarino commented 1 year ago

Also, like in #1376, the usage of "you" is preferred to "we".

koyena-b78 commented 1 year ago

Hi! A newbie here, sorry if I'm asking something basic. But running this code doesn't give the energy outputs as shown here given by the vqd_values output. Even on the Qiskit page under Qiskit Documentation > Tutorials > VQD algorithm, the outputs are different as to what can be seen here although the code is the same as this one. The output on running print(vqd_values) there is:

[[ 2.91739505 1.64220143 6.46687958 3.14081435 6.26702706 4.63923293 -3.36412161 -3.18023756] [ 1.56977973 4.71301467 6.47954504 3.27439973 5.66727328 5.3138871 -3.6774927 -2.84146135] [ 4.70976873 1.57087934 1.35278717 5.08404009 5.07340295 4.5064013 -3.52919173 -4.24540619] [ 4.70976873 1.57087934 1.35278717 5.08404009 5.07340295 4.5064013 -3.52919173 -4.24540619]]

Why is that? And how to obtain the energy values as shown here by running VQD? Again very sorry if this is something basic I'm asking. Thank you