This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Conversation
This file contains 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
ShellyGarion
changed the title
[WIP] Update CNOTDihedral class
Update CNOTDihedral class
Apr 24, 2020
With the new functions added, it's now possible to refactor the RB code so that it will not rely on pre-generated group tables save in pkl files (#392). |
ShellyGarion
force-pushed
the
CNOTDihedral
branch
from
May 13, 2020 08:59
9902ed0
to
a56e456
Compare
This was referenced May 17, 2020
Closing since this will be finalized as part of #407. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
#391
Details and comments
Add the following functions:
decompose_CNOTDihedral
- decomposition of 1&2-qubit elements without look-up tablesappend_circuit
- update a CNOTDihedral element inplace by applying a CNOTDihedral circuitrandom_CNOTDihedral
- generate a pseudo-random CNOTDihedral element.Add the following methods to the CNOTDihedral class (so that it will have the same API as the Clifford operator class):
to_circuit
from_circuit
compose
dot
Update the files:
dihedral.py
test_dihedral.py
init