forked from ColibrITD-SAS/mpqp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from ColibrITD-SAS/dev
add implementation of the identity gate (ColibrITD-SAS#25)
- Loading branch information
Showing
3 changed files
with
83 additions
and
77 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,26 @@ | ||
# pyright: reportUnusedImport=false | ||
from .controlled_gate import ControlledGate | ||
from .custom_gate import CustomGate, UnitaryMatrix | ||
from .gate import Gate | ||
from .parametrized_gate import ParametrizedGate, symbols | ||
from .gate_definition import ( | ||
GateDefinition, | ||
KrausRepresentation, | ||
PauliDecomposition, | ||
) | ||
from .gate_definition import GateDefinition, KrausRepresentation, PauliDecomposition | ||
from .native_gates import ( | ||
X, | ||
Y, | ||
Z, | ||
CNOT, | ||
CZ, | ||
SWAP, | ||
TOF, | ||
CRk, | ||
H, | ||
Id, | ||
P, | ||
S, | ||
T, | ||
SWAP, | ||
U, | ||
Rk, | ||
Rx, | ||
Ry, | ||
Rz, | ||
Rk, | ||
CNOT, | ||
CZ, | ||
CRk, | ||
TOF, | ||
S, | ||
T, | ||
U, | ||
X, | ||
Y, | ||
Z, | ||
) | ||
from .custom_gate import CustomGate, UnitaryMatrix | ||
from .parametrized_gate import ParametrizedGate, symbols |
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