Skip to content

Conversation

@doichanj
Copy link
Collaborator

@doichanj doichanj commented Oct 3, 2025

Summary

This PR adds support for measuring and stores to multiple classical registers.
Also adds functions in BitArray class as similar to Python's Qiskit to get bitcount and indexed data access.

Details and comments

There was no function to store to multiple classical registers before. And Sampler returns all the measured bits in a single BitArray data.
Now sampler pub result can return separate BitArray for each classical registers.

BitArray adds new functions. bitcount returns number of 1 bits in each bitstrings.
get_counts can have a list of index which element should be included in the map of counts

@doichanj doichanj merged commit 1703a76 into Qiskit:main Oct 3, 2025
6 checks passed
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.

1 participant