Skip to content

Write public guide for using BitArray directly #2612

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

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

SamFerracin
Copy link
Contributor

This PR updates the guide about inputs and outputs of primitives to show how to make the best use of BitArray objects

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@qiskit-bot
Copy link
Contributor

One or more of the following people are relevant to this code:

@ihincks
Copy link
Contributor

ihincks commented Jan 31, 2025

Thanks @SamFerracin , I will leave a review next week.

@@ -90,14 +90,22 @@
"metadata": {},
Copy link
Contributor

@ihincks ihincks Feb 19, 2025

Choose a reason for hiding this comment

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

I think this is a nice simplification/clarification in plainer english. I also think that one of the first things that should be said after BitArray is mentioned is that it is just a container for ordered shot data. Then, in the next paragraph, it can be emphasized, somehow, that get_counts is a convenience to change formats.


Reply via ReviewNB

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"\n",
"# to access the BitArray, one can use the keyword \"meas\", which is the default\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"# to access the BitArray, one can use the keyword \"meas\", which is the default\n",
"# to access the BitArray, use the keyword \"meas\", which is the default\n",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

5 participants