-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Verify values of parametrized rzz gates (#2021)
* Verify values of parametrized rzz gates * black * lint * black * lint * lint * mypy * mypy * fix * fix * fix * bug fix * updated the parametrized angle test * fixes * adding a test * test_rzz_recursive * use assertRaisesRegex to refine assertions * black * lint * removed a redundant test * skip parameter expression * black * check fixed angles also in is_isa_circuit * black * removed extra white space in error message * Update qiskit_ibm_runtime/utils/utils.py Co-authored-by: Takashi Imamichi <[email protected]> * spell fix * Update qiskit_ibm_runtime/utils/utils.py Co-authored-by: Ian Hincks <[email protected]> * Update qiskit_ibm_runtime/utils/utils.py Co-authored-by: Ian Hincks <[email protected]> * release notes * black * changed tolerated rounding error * lint * changed wording in the release note * Update release-notes/unreleased/2021.feat.rst Co-authored-by: Will Shanks <[email protected]> * renamed functions * revised a comment --------- Co-authored-by: Takashi Imamichi <[email protected]> Co-authored-by: Ian Hincks <[email protected]> Co-authored-by: Will Shanks <[email protected]> Co-authored-by: Will Shanks <[email protected]> Co-authored-by: Kevin Tian <[email protected]>
- Loading branch information
1 parent
92ee498
commit 681aeb9
Showing
6 changed files
with
207 additions
and
13 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
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 @@ | ||
A new function ``validate_rzz_pubs`` was added. The function verifies that ``rzz`` parameters are in the range between ``0`` and ``pi/2``, for numeric parameters (e.g. ``rzz(np.pi/4, 0)``), and for unbounded parameters (``rzz(theta, 0)``) with values to substitute provided in the pub. Parameter expressions (e.g. ``rzz(theta + phi, 0)``) are still not validated. |
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