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

Samples and Counts output debugging #7

Merged
merged 8 commits into from
Jun 6, 2024
Merged

Conversation

WrathfulSpatula
Copy link
Collaborator

This PR fixes the conversion from Qrack integer bit string sample histograms to the expected output formats of PennyLane Catalyst Samples() and Counts().

Copy link
Contributor

@vprusso vprusso left a comment

Choose a reason for hiding this comment

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

Minor comments, but LGTM!

pennylane_qrack/qrack_device.cpp Outdated Show resolved Hide resolved
@@ -2,4 +2,4 @@ pennylane>=0.32
pennylane-catalyst>=0.6
pyqrack>=0.13.0
numpy~=1.16
scikit-build
scikit-build>=0.1.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to specify these requirements in both the setup and requirements? I believe there's a way to define them in one spot and then use them in both.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is, but many projects do it either way. For now, I prefer this to piping in the requirements.txt.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I looked into it a bit, for due diligence: setup.py needs installation dependencies; requirements.txt needs development build dependencies. Except in the case these two dependency lists are identical, perhaps they should be kept distinct.

pennylane_qrack/qrack_device.cpp Outdated Show resolved Hide resolved
@WrathfulSpatula WrathfulSpatula merged commit 74bcc5f into master Jun 6, 2024
1 of 4 checks passed
@WrathfulSpatula WrathfulSpatula deleted the output_debug branch June 6, 2024 00:49
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