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

Adding documentation about big endian values #3146

Merged
merged 2 commits into from
Jul 21, 2020

Conversation

dstrain115
Copy link
Collaborator

- Adjusting documentation about big endian representations
for TrialResult and Sampler.
- Solves quantumlib#2972
@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Jul 17, 2020
parameter. Measurement results are stored as a big endian integer
representation with one bit for each measured qubit in the key.
See `cirq.big_endian_int_to_bits` and similar functions for how
to convert this integer into bits.
Copy link
Collaborator

Choose a reason for hiding this comment

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

You could also reference the second example below which illustrates endianness of the representation of measurement results.

@balopat balopat added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 21, 2020
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 21, 2020
@CirqBot CirqBot merged commit ea20a18 into quantumlib:master Jul 21, 2020
@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 Jul 21, 2020
tonybruguier pushed a commit to tonybruguier/Cirq that referenced this pull request Aug 23, 2020
- Adjusting documentation about big endian representations
for TrialResult and Sampler.
- Solves quantumlib#2972
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants