Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 14, 2020
Merged

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

merged 2 commits into from
Oct 14, 2020

Conversation

alejomonbar
Copy link
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
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: New Feature Include in the "Added" section of the changelog label Oct 14, 2020
@1ucian0
Copy link
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
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
Contributor Author

Thanks! Welcome to the community!

Thank you for helping me. Looking forward to continuing helping

@1ucian0
Copy link
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: New Feature Include in the "Added" section of the 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: New Feature Include in the "Added" section of the 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: New Feature Include in the "Added" section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show pi in the text drawer as π
5 participants