Add more gate definitions for sdk integration #82
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 of changes
This pull request includes several changes to the
pyqasm/maps.py
file, mainly focusing on adding new gate implementations and updating existing ones.New Gate Implementations:
iswap_gate
function to implement the iSwap gate as a decomposition of other gates.cu_gate
function to implement the CU gate, and updated thecu3_gate
function to useu3_gate
for decomposition.cu1_gate
function to implement the CU1 gate as a decomposition of other gates.cphaseshift_gate
function to implement the controlled phase shift gate usingu3_gate
for decomposition.Removed/Updated Gate Implementations:
xx_gate
function and replaced its usage withrxx_gate
in the gate map. [1] [2]cu3_gate
function to useu3_gate
instead ofphaseshift_gate
for decomposition.Test Updates:
_check_iswap_gate_op
function to test theiswap_gate
implementation.check_two_qubit_gate_op
function to include theiswap
gate.tests.passes.test_qasm3_format.py