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 result types to ASCII diagram #77

Merged
merged 2 commits into from
May 15, 2020
Merged

Add result types to ASCII diagram #77

merged 2 commits into from
May 15, 2020

Conversation

avawang1
Copy link
Contributor

*Issue #, if available: N/A

*Description of changes:

  • Add result types to ASCII diagram
  • Change result types ascii_symbol to ascii_symbols

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

build_files.tar.gz

@avawang1 avawang1 requested a review from speller26 May 15, 2020 16:49
Comment on lines +331 to +333
"q0 : -C---H-Variance(Y)------------",
" | ",
"q1 : -|-C---Expectation(Hermitian)-",
Copy link
Contributor

Choose a reason for hiding this comment

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

Shorter symbol names might give a cleaner appearance for the diagrams: Variance -> Var, Expectation -> <>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm erring on the side of having more explicit names to reduce user confusion, since there aren't really any standards for these result names.

src/braket/circuits/result_type.py Outdated Show resolved Hide resolved
src/braket/circuits/result_type.py Outdated Show resolved Hide resolved
@avawang1 avawang1 merged commit 1921ec1 into master May 15, 2020
@avawang1 avawang1 deleted the feature/ascii branch May 15, 2020 23:10
kshitijc pushed a commit that referenced this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants