Skip to content

Commit

Permalink
Fixed issue #1028: Labeling of Plot of target vs qsvt (#1029)
Browse files Browse the repository at this point in the history
I have resolved the issue mentioned in
#1028 related to the tutorial
introduction to qsvt, which can be found at
https://github.com/PennyLaneAI/qml/blob/master/demonstrations/tutorial_intro_qsvt.py.
  • Loading branch information
elucidator8918 authored Jan 29, 2024
1 parent 6da5997 commit 6b3d4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demonstrations/tutorial_intro_qsvt.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def qsvt_output(a):
target = [target_poly(a) for a in a_vals]


plt.plot(a_vals, qsvt, label="target")
plt.plot(a_vals, target, "*", label="qsvt")
plt.plot(a_vals, target, label="target")
plt.plot(a_vals, qsvt, "*", label="qsvt")

plt.legend()
plt.show()
Expand Down

0 comments on commit 6b3d4ca

Please sign in to comment.