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

Update Grover tutorials to use Sampler #1377

Closed a-matsuo closed 1 year ago

a-matsuo commented 1 year ago

Summary

This PR updates Grover related tutorials, 06_grover.ipynb and 07_grover_examples.ipynb, to use Sampler.

close #1365

Details and comments

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

HuangJunye commented 1 year ago

@Guillermo-Mijares-Vilarino Can you please review this PR?

Guillermo-Mijares-Vilarino commented 1 year ago
# now we can have a look at the Grover operator that is used in running the algorithm
 # (Algorithm circuits are wrapped in a gate to be appear in composition as a block
# so we have to decompose() the op to see it expanded into its component gates.)
problem.grover_operator.decompose().draw(output='mpl')

I think there might be a typo here. "... gate to be appear in composition..."

a-matsuo commented 1 year ago

Thank you! I updated the notebook.