PR: Added gate Alias and minor fix in MCY gate #2
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.
Add Gate Wrapper Methods and Comprehensive Tests
Overview
This PR implements wrapper methods for all gate types in the QCircuit class and adds comprehensive tests to ensure they work correctly.
What's New
1. Gate Wrapper Methods
Added convenient wrapper methods to
QCircuitfor all supported gate types:H(),X(),Y(),Z(),RX(),RY(),RZ(),Phase(),U2(),U3()CNOT(),CZ(),CY(),SWAP(),iSWAP(),CPhase(),CRX(),CRY(),CRZ(),CU2(),CU3()MCX(),MCY(),MCZ(),MCRX(),MCRY(),MCRZ(),MCMG()MG(),MCMG()Phase45(),Phase90(),T(),S()RXX(),RYY(),RZZ()2. Comprehensive Test Suite
Created extensive tests that verify:
3. Bug Fix
equalsfunction that was preventing proper gate comparisonKey Features
Convenient API