Skip to content

[User Feedback] unclear how to get counts from pub data #2650

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

Closed
javabster opened this issue Feb 18, 2025 · 1 comment · Fixed by #3013
Closed

[User Feedback] unclear how to get counts from pub data #2650

javabster opened this issue Feb 18, 2025 · 1 comment · Fixed by #3013

Comments

@javabster
Copy link
Collaborator

We got some user feedback that essentially points to the fact that the architecture for storing PubResults inside of PrimitiveResults and trying to access specific data isn't very intuitive. One suggestion for how we could make this more clear is that we could add a diagram showing how the properties are connected to each other on the primitive input/output page: https://docs.quantum.ibm.com/guides/primitive-input-output#sampler-output.

@kaelynj suggests something like this, but other options can be explored by whoever picks this ticket up:

└── PrimitiveResult/
    ├── PubResult[0]/
    │   ├── metadata
    │   └── data/
    │       ├── NAME_OF_REGISTER/
    │       │   └── BitArray of count data
    │       └── NAME_OF_ANOTHER_REGISTER/
    │           └── BitArray of count data
    └── PubResult[1]/
        ├── metadata
        └── data/
            └── NAME_OF_REGISTER/
                └── BitArray of count data for second pub
@javabster javabster added content 📄 good first issue 🐣 needs triage 🤔 this issue needs to be prioritized by the docs team labels Feb 18, 2025
@kaelynj
Copy link
Collaborator

kaelynj commented Feb 20, 2025

There is also some work happening to update the guides on how to best use BitArray objects in #2612

@kaelynj kaelynj self-assigned this Feb 20, 2025
@javabster javabster removed the needs triage 🤔 this issue needs to be prioritized by the docs team label Feb 20, 2025
@javabster javabster marked this as a duplicate of #2874 Apr 10, 2025
github-merge-queue bot pushed a commit that referenced this issue Apr 17, 2025
Closes #2650 

The improvements made by #2612 I think will also help a lot with the
feedback we've been getting about confusion around the `PrimitiveResult`
data structure.

---------

Co-authored-by: abbycross <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants