-
Notifications
You must be signed in to change notification settings - Fork 973
[QDP] [Bug] Fix benchmark_e2e Error #760
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
Closed
Closed
+244
−35
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pache#654) * Add mypy for static type checking Added mypy static type checking to pre-commit hooks. * pre-commit hook: fix Signed-off-by: ryankert01 <ryan980053@gmail.com> * update version and clean-up strings Signed-off-by: ryankert01 <ryan980053@gmail.com> --------- Signed-off-by: ryankert01 <ryan980053@gmail.com>
* Implement T-gate (π/8 gate) across all backends - Add apply_t_gate() method to QuMat class with validation - Implement T-gate support in Qiskit, Cirq, and Amazon Braket backends - Restore T-gate documentation in basic_gates.md to match implementation Fixes apache#681 * Refine T-gate docs and add coverage * chore: satisfy pre-commit hooks
* docs: add missing QuMat APIs * clarify T-gate usage and parameter description * alignment docs/api.md Co-authored-by: 江家瑋 <36886416+JiangJiaWei1103@users.noreply.github.com> --------- Co-authored-by: 江家瑋 <36886416+JiangJiaWei1103@users.noreply.github.com>
Fixes apache#707 (Trying to find some simple issues to help with while hopefully finally finding time to toy with the code over Christmas.)
…d of None (apache#757) * fix the bug * Update documentation to reflect draw_circuit() returns value instead of printing
Contributor
Author
Contributor
|
plz resolve the conflict. |
7a78a02 to
c9658f1
Compare
Signed-off-by: 400Ping <fourhundredping@gmail.com>
7d378ea to
7ed9cda
Compare
Contributor
Author
|
@rich7420 done. |
Contributor
Author
|
my commits got messed up, will reopen another one |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of PR
DLPack output was coming back as a flat 1-D tensor (
n_samples * 2^n_qubits), so the benchmark assert expected 2-D[n_samples, state_len]was failing. Added a defensive reshape to view the tensor as[n_samples, state_len]before asserting, so benchmarks can continue even when the producer flattens the DLPack shape.Error log:
Related Issues or PRs
Closes #759
Changes Made
Breaking Changes
Checklist