-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix circuit drawer for instructions with circuit parameters (#9942)
* fix: modify get_param_str to prevent circuit drawer from displaying params of type QuantumCircuit * fix lint errors * test: add circuit drawer test for instructions with parameters of type QuantumCircuit * test: add circuit drawer tests for no parameters and params of type ndarray * fix lint errors * remove variable to fix lint error * add reno * update releasenotes/notes/fix-circuit-drawer-for-qc-params
- Loading branch information
Showing
3 changed files
with
60 additions
and
7 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
5 changes: 5 additions & 0 deletions
5
releasenotes/notes/fix-circuit-drawer-for-qc-params-e78c67310ae43ccf.yaml
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,5 @@ | ||
fixes: | ||
- | | ||
Fixes the circuit drawer from displaying parameters when they are of type :class:`.QuantumCircuit` | ||
since this resulted in an illegible drawing. | ||
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