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

Add pretty repr to devices and result types #4649

Merged
merged 7 commits into from
Nov 11, 2021

Conversation

dabacon
Copy link
Collaborator

@dabacon dabacon commented Nov 9, 2021

Implements _repr_pretty_ which pretty prints in iPython (jupyter notebooks)

Addresses #682

@dabacon dabacon requested review from cduck, vtomole, wcourtney and a team as code owners November 9, 2021 21:04
@dabacon dabacon requested a review from tanujkhattar November 9, 2021 21:04
@CirqBot CirqBot added the size: L 250< lines changed <1000 label Nov 9, 2021
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Nov 9, 2021
@MichaelBroughton MichaelBroughton self-assigned this Nov 9, 2021
Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

@dabacon dabacon added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Nov 11, 2021
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Nov 11, 2021
@CirqBot CirqBot merged commit dc6f569 into quantumlib:master Nov 11, 2021
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels Nov 11, 2021
@dabacon dabacon deleted the prettyrepr branch April 16, 2022 15:42
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Implements `_repr_pretty_` which pretty prints in iPython (jupyter notebooks)

Addresses quantumlib#682
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Implements `_repr_pretty_` which pretty prints in iPython (jupyter notebooks)

Addresses quantumlib#682
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining. size: L 250< lines changed <1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants