-
Notifications
You must be signed in to change notification settings - Fork 12
Qudit infras #42
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
Merged
Qudit infras #42
Changes from 39 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
935001a
Fixed a potential issue in the qudit system that could have caused la…
WeiguoMa db7b202
Add variable _ALPHBET for representing the states in qudit systems.
WeiguoMa 81cca4f
Optimized functions in counts, make them avaliable for qudit systems.…
WeiguoMa 52fbf66
Removed hard codes in quantum.py (corresponding to qubit system.), al…
WeiguoMa d92d6e1
black formatted file.
WeiguoMa 01d2538
Expanded the any_gate function, which is main entry function for the …
WeiguoMa 2a9d8ce
Add a parameter _d for abstractcircuit, which is 2 in Default.
WeiguoMa 9baccfb
Removed hard code in circuit.py (correspond to only qubit system), Ci…
WeiguoMa e5ff8ca
decode the labels for new representation of states, 0-9A-Z.
WeiguoMa 5b7ffe4
change site label, when dim>2, it changes from `qb-` to `qd-`
WeiguoMa 10627e6
black .
WeiguoMa 2091530
Adjust system to qudit systems.
WeiguoMa db7b548
Adjust system to qudit systems. Passes all tests in test_mpscircuit.py
WeiguoMa c18944f
black .
WeiguoMa c512a59
Considering the existence of resetting the circuit in the line (such …
WeiguoMa 0f319e9
Fixed a potential error when the backend is TensorFlow.
WeiguoMa 2a3e1aa
removed unnecessary codes.
WeiguoMa aecf4b5
Merge branch 'tensorcircuit:master' into qudit_infras
WeiguoMa 91aea86
fix #41
refraction-ray 48fb567
fix bug
WeiguoMa d9cbed2
add floor_divide() to all the backends.
WeiguoMa 3d05a5f
add test for floor_divide().
WeiguoMa c7227e2
remove redundant codes
WeiguoMa 9e88765
make codes consistent
WeiguoMa 855b28c
fixed a potential bug.
WeiguoMa 44f6e0c
fixed a potential bug.
WeiguoMa cb6dcf6
add tests for d>2 case.
WeiguoMa 8cbf98e
add test for d>2 cases.
WeiguoMa 8b7b227
use backend
WeiguoMa a7e1577
d -> dim
WeiguoMa 70737e9
Merge branch 'master' into qudit_infras
WeiguoMa 5b42282
black .
WeiguoMa 28af7a2
a bug fixed
WeiguoMa 75b6c1d
I found that the correlation in qudit systems is ill-defined, so does…
WeiguoMa 3832c02
I changed this into a more random method.
WeiguoMa 32893c3
black .
WeiguoMa 3802c7d
add test for conversions.
WeiguoMa 8b41e59
formatted code
WeiguoMa 7624596
remove redundant code.
WeiguoMa 5c24c4e
set parameter `dim` be the last args
WeiguoMa 53ae6a3
bug fixed
WeiguoMa ffb2006
change strategy
WeiguoMa f079f24
optimized
WeiguoMa e3f88dd
fixed a possible bug
WeiguoMa 810d624
adjust n_max_d for dim-dimensional qudit circuits.
WeiguoMa 801fb3a
fix argsort and reshape according to comments.
WeiguoMa 7999217
use _infer_num_sites() instead of risky calculation.
WeiguoMa d6f0eb4
move _decode_basis_label() from basecircuit.py to quantum.py
WeiguoMa ca78678
use _infer
WeiguoMa bf9e6fc
add import
WeiguoMa 4e2e27d
tiny changes based on comments.
WeiguoMa 793876b
use backend.probability_sample()
WeiguoMa 1c5e67e
add onehot_d_tensor in quantum.py and apply.
WeiguoMa 78120ad
remove parse_key
WeiguoMa d84bd72
use onehot_d_tensor
WeiguoMa a26be1f
import onhot_d_tensor
WeiguoMa f82b382
removed a useless import
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
Large diffs are not rendered by default.
Oops, something went wrong.
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.