-
Notifications
You must be signed in to change notification settings - Fork 973
[QDP] Add encoding method parameter to all benchmarks #840
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
[QDP] Add encoding method parameter to all benchmarks #840
Conversation
| all_data = np.random.randint(0, dim, size=(n_samples, 1)).astype(np.float64) | ||
| else: | ||
| # Amplitude encoding: full vectors | ||
| all_data = np.random.rand(n_samples, dim).astype(np.float64) |
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.
Can this be a shared utility function that can be used on multiple benchmark?
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.
Sure, I've updated.
5211a2b to
6c9118c
Compare
|
cc @400Ping |
|
Thanks for the patch @guan404ming ! |
fcd6999 to
1f53d69
Compare
Nice catch, I've updated. Thanks! |
ryankert01
left a comment
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.
400Ping
left a comment
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.
Overall LGTM
|
Going to merge this. Feel free to open pr to refine this. Thanks! |
Purpose of PR
amplitude(default) andbasisencoding methods in benchmarkRelated Issues or PRs
Changes Made
Breaking Changes
Checklist