Skip to content

Created Aliases for Gates #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Giacomo-Antonioli
Copy link

I have introduced new wrapper functions (aliases) within the QCircuit class to provide simpler, more convenient ways to add quantum gates. This enhancement aims to improve the usability and readability of quantum circuit constructions by offering abbreviated names for commonly used controlled gates (e.g., CRX, CRY, CRZ, CU2, CU3, CNOT, CZ, CPhase). These aliases directly pass arguments to their respective qclab.qgates constructors, streamlining circuit definition.

Copy link
Collaborator

@SophiaKeip SophiaKeip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using the original input arguments instead of varargin to make the expected inputs visible to users.

@campsd
Copy link
Member

campsd commented Jun 2, 2025

Additionally, consider also adding some test cases (you can base these on existing tests) for these wrapper functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants