forked from Qiskit/qiskit
-
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.
Add inverse function to StandardGate in rust (Qiskit#13168)
* add inverse of 1-qubit StatndardGate's * add inverse of 2-qubit and 3-qubit StandardGate's * return None if the inverse of a StandardGate is not a StandardGate * add inverse to all impl Operation * update inverse return type * add test for inverse method * replace Vec by SmallVec in Param * update function name inverse to try_inverse * fix test following review * replace try_inverse by inverse * move inverse from Operation to StandardGate
- Loading branch information
1 parent
4e573f3
commit 90e92a4
Showing
2 changed files
with
213 additions
and
1 deletion.
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