Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
[QI2-1292] Fix comment on deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasKA committed Jan 31, 2025
1 parent c24fb06 commit 4e774b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_quantuminspire2/cqasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def dumps(q_node: qml.QNode, *args: Any, **kwargs: Any) -> str:
q_node.construct(args=args, kwargs=kwargs)
openqasm_code = q_node.tape.to_openqasm()

# As of pennylane v0.40.0 Qnode.tape property is no longer supported and instead the following approach is advised:
# As of pennylane v0.40.0 Qnode.tape property is deprecated and instead the following approach is advised:
# tape = qml.workflow.construct_tape(q_node)
# openqasm_code = tape(*args, **kwargs).to_openqasm()

Expand Down

0 comments on commit 4e774b1

Please sign in to comment.