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

Adding Response + cleaning up classically optimize #9

Merged
merged 14 commits into from
Feb 23, 2024

Conversation

skushnir123
Copy link
Collaborator

  • Added Response class, QHD.optimzie now returns a Response object
  • Cleaned up classically optimize
  • Edited notebooks to all comply with new code structure

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)
Copy link
Owner

@jiaqileng jiaqileng Feb 7, 2024

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?

Copy link
Owner

@jiaqileng jiaqileng left a 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.

@jiaqileng jiaqileng merged commit 61f6d21 into main Feb 23, 2024
@skushnir123 skushnir123 deleted the clean-up-add-response branch February 25, 2024 00:03
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