Skip to content

Test circuit drawer uses "π" instead of "pi"#5218

Merged
1ucian0 merged 2 commits into
Qiskit:masterfrom
alejomonbar:fixissue4959last
Oct 14, 2020
Merged

Test circuit drawer uses "π" instead of "pi"#5218
1ucian0 merged 2 commits into
Qiskit:masterfrom
alejomonbar:fixissue4959last

Conversation

@alejomonbar
Copy link
Copy Markdown
Contributor

Summary

Fixed #4959

Details and comments

Change pi_check function when output is "text" from "pi" to "π". Also, the test cases were updated to check different circuits with the new symbol "π". Different encoders were tested to see if they accepted "π" and gave good results.

@enavarro51
Copy link
Copy Markdown
Contributor

@1ucian0 We'd discussed also doing the dagger for sdg, tdg, and sxdg for the text drawer. Something like S†. Unicode is 2020. Easy to do in text drawer special_label but not sure whether there are encoding issues for this and there would be more test modifications. Should we open another issue for this?

@1ucian0 1ucian0 changed the title Fixed issue 4959 Test circuit drawer uses "π" instead of "pi" Oct 14, 2020
@1ucian0 1ucian0 added the Changelog: Added Add an "Added" entry in the GitHub Release changelog. label Oct 14, 2020
@1ucian0
Copy link
Copy Markdown
Member

1ucian0 commented Oct 14, 2020

I dont think there is in cp437. I think that one should depend on self.encoding. For another PR...

Copy link
Copy Markdown
Member

@1ucian0 1ucian0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Welcome to the community!

@alejomonbar
Copy link
Copy Markdown
Contributor Author

Thanks! Welcome to the community!

Thank you for helping me. Looking forward to continuing helping

@1ucian0
Copy link
Copy Markdown
Member

1ucian0 commented Oct 14, 2020

I dont think there is in cp437. I think that one should depend on self.encoding. For another PR...

@1ucian0 1ucian0 merged commit 21b40bf into Qiskit:master Oct 14, 2020
@mtreinish mtreinish removed the Changelog: Added Add an "Added" entry in the GitHub Release changelog. label Oct 14, 2020
mtreinish added a commit to mtreinish/aqua that referenced this pull request Mar 16, 2021
This commit fixes the usage of internal only explicitly private
attributes of basicaer's job class. These look they were used to
manually create a job id which was manually set ahead of time despite
still being a random uuid and then launching a simulation from that
constructed job object. Which is both the incorrect order to run a
simulation (runs generate jobs, not the other way around) but also
served no functional purpose. This commit removes this as this is a
blocker for Qiskit/qiskit#5218 which is upgrading the basic aer
provider to use the latest versioned provider interface which removes
all of those private methods and also moves to a synchronous execution
model.
manoelmarques pushed a commit to qiskit-community/qiskit-aqua that referenced this pull request Mar 18, 2021
* Stop using basic aer internal private attributes

This commit fixes the usage of internal only explicitly private
attributes of basicaer's job class. These look they were used to
manually create a job id which was manually set ahead of time despite
still being a random uuid and then launching a simulation from that
constructed job object. Which is both the incorrect order to run a
simulation (runs generate jobs, not the other way around) but also
served no functional purpose. This commit removes this as this is a
blocker for Qiskit/qiskit#5218 which is upgrading the basic aer
provider to use the latest versioned provider interface which removes
all of those private methods and also moves to a synchronous execution
model.

* Fix lint

* Update run_circuits.py

Fix copyright

Co-authored-by: Steve Wood <40241007+woodsp-ibm@users.noreply.github.com>
@kdk kdk added the Changelog: Added Add an "Added" entry in the GitHub Release changelog. label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Added Add an "Added" entry in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show pi in the text drawer as π

5 participants