-
Notifications
You must be signed in to change notification settings - Fork 12
Qudit_interface #45
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
Merged
refraction-ray
merged 64 commits into
tensorcircuit:master
from
WeiguoMa:qudit_circuit_gate
Sep 9, 2025
Merged
Qudit_interface #45
Changes from 49 commits
Commits
Show all changes
64 commits
Select commit
Hold shift + click to select a range
2037c83
Add quditgates.py and quditcircuit.py.
WeiguoMa 3c062ab
add quditgates to __init__.py
WeiguoMa 30c7025
Add functions from tc.Circuit
WeiguoMa da94086
Add tests for QuditCircuit
WeiguoMa 6755d9f
Reported a potential bug.
WeiguoMa 2b600b8
Add doc.
WeiguoMa 4b96665
black
WeiguoMa dbbb685
Add QuditCircuit interface to __init__.py
WeiguoMa 12f66c8
remove a useless pack
WeiguoMa 4eb9dc2
remove useless pack.
WeiguoMa bde4f24
fixed a possible bug
WeiguoMa 0212135
formatted codes.
WeiguoMa c910791
remove redundant code.
WeiguoMa 255824a
add test_large_scale_sample
WeiguoMa edb97b1
Adjust the code framework
WeiguoMa b0b30d5
new docstring
WeiguoMa 7585731
Add tests for quditgates
WeiguoMa 0e6c053
formatted codes
WeiguoMa 96a55b2
formatted codes
WeiguoMa 9dbabaa
black
WeiguoMa 35288d2
reform doc
WeiguoMa a3f2131
use np.eye
WeiguoMa 5278f50
use np.diag
WeiguoMa 62750f1
fixed an early notation
WeiguoMa 3a265cc
use np.diag
WeiguoMa d88b9a9
remove useless line
WeiguoMa 26dd999
change atol from 1e-4 to 1e-5
WeiguoMa 60ce1e7
bug fixed
WeiguoMa 8793b21
use highp
WeiguoMa 2135ecf
remove `count_vector` from sample
WeiguoMa 3e29f11
remove sympy
WeiguoMa 8c86e1c
format codes according to pylint
WeiguoMa 83378fb
change u8 __doc__
WeiguoMa d379cff
remove 'count_vector'
WeiguoMa 995a3c8
remove y gate
WeiguoMa 10cc46c
remove a y-related test info
WeiguoMa a64a3b9
remove y
WeiguoMa b6a8c10
rzz_gate from global to local (for consistence)
WeiguoMa 92d98a3
np -> backend to ensure the auto-differential
WeiguoMa ee8b617
fixed rzz_gate
WeiguoMa 9cceefa
fixed a docsing bug
WeiguoMa 56902a5
Add expectation_before(), amplitude_before() functions
WeiguoMa d396ba2
add Gate
WeiguoMa 8b224f0
Provide a corresponding uppercase entry for the doors.
WeiguoMa 0944fb5
np -> backend, and this should solve auto-differential.
WeiguoMa 3dd499b
Fixed a bug that could lead to backend pollution.
WeiguoMa 5c3a082
add test_quditvqe.py for testing vqe, jit and vmap in QUDIT Interface.
WeiguoMa cdb1ee6
add tests for codecov test.
WeiguoMa 90646ee
black .
WeiguoMa 0e253e1
extend check_rotation()
WeiguoMa 5a9a4ea
remove qudit gates lru_cache
WeiguoMa 507c3ab
optimized codes
WeiguoMa ee11fd2
remove un-used import.
WeiguoMa 9849ee0
fixed a bug of qudit swap
WeiguoMa a5246ae
add backend as para for tests/
WeiguoMa 7a8759e
add ref to u8 gate and fixed logical bug of this
WeiguoMa 80b04af
move jit, autograd, vmap tests to test_quditcircuit.py
WeiguoMa 8ff6981
Add an example for qudit vqe.
WeiguoMa 768b003
format
WeiguoMa 68bb073
remove quditvqe test.
WeiguoMa 8aa2695
change function name
WeiguoMa 53669a2
add test for len(nodes) in amplitude_before_test
WeiguoMa 52f9804
optimized examples/vqe_qudit_example.py according to comments.
WeiguoMa d4d3d8d
refresh the whole file, making no complicated conversion
WeiguoMa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.