forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add uuid property to Parameter (Qiskit#11647)
* Add uuid property to Parameter This change adds a public, read-only uuid property to Parameter which can be used in advanced use cases for getting the uuid value to pass to the Parameter constructor. * Add intersphinx reference to UUID Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Reference uuid instead of _uuid * Add Parameter equality test --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information
Showing
4 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
features: | ||
- | | ||
A :attr:`~qiskit.circuit.Parameter.uuid` property was added to the | ||
:class:`qiskit.circuit.Parameter` class. In advanced use cases, | ||
this property can be used for creating | ||
:class:`qiskit.circuit.Parameter` instances that compare equal to | ||
each other. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters