-
Notifications
You must be signed in to change notification settings - Fork 4
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
Adding Response + cleaning up classically optimize #9
Conversation
skushnir123
commented
Feb 7, 2024
- Added Response class, QHD.optimzie now returns a Response object
- Cleaned up classically optimize
- Edited notebooks to all comply with new code structure
src/qhdopt/qhd.py
Outdated
if samples is None: | ||
samples = np.random.rand(self.shots, self.dimension) | ||
def classically_optimize(self, shots=100, solver="TNC", verbose=0): | ||
self.baseline_setup(shots, solver) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In baseline_setup (and baseline backend exec), the samples are initialized randomly on the discretized space (i.e., the mesh grid point). But I assume classically_optimize(...) should also be able to handle user-specified initial guesses. Or do we move this feature to some other functions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The response class looks good to me. I had a small question for the new classically_optimize function.