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

Provide cuTensorNet configuration options from CuTensorNetStateBackend and CuTensorNetShotsBackend #144

Closed
PabloAndresCQ opened this issue Jul 29, 2024 · 0 comments
Assignees

Comments

@PabloAndresCQ
Copy link
Collaborator

We have received requests from users to allow them to change the default scratch_fraction and attributes from GeneralState's sample, see code (and get_statevector) via the interface of CuTensorNetShotsBackend (and CuTensorNetStateBackend).

@PabloAndresCQ PabloAndresCQ self-assigned this Jul 29, 2024
PabloAndresCQ added a commit that referenced this issue Jul 31, 2024
# Description

- Solves the issue below, allowing users to provide attributes from the
cuTensorNet enums.
- Adds a check in `sample` from `GeneralState` to raise an exception if
the circuit has no measurements.
- Small changes:
  - Default `scratch_fraction` is now 0.75
- Set the default logging level of `GeneralState` to WARNING (less
verbose than INFO)

# Related issues

Solves #144 

# Checklist

- [x] I have run the tests on a device with GPUs.
- [x] I have performed a self-review of my code.
- [ ] I have commented hard-to-understand parts of my code.
- [x] I have made corresponding changes to the public API documentation.
- [x] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have updated the changelog with any user-facing changes.
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

No branches or pull requests

1 participant