Skip to content
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

Add H as an alias for Hadamard operator #6450

Merged
merged 14 commits into from
Oct 25, 2024
Merged

Conversation

Alex-Preciado
Copy link
Contributor

@Alex-Preciado Alex-Preciado commented Oct 25, 2024

This PR adds H as an alias for the Hadamard operator. Main goal is to enhance usability and consistency in gate naming.

Related Shortcut Stories:
[sc-70976]

@Alex-Preciado Alex-Preciado added this to the v0.39 milestone Oct 25, 2024
Copy link

codecov bot commented Oct 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.38%. Comparing base (d7c127f) to head (761f596).
Report is 316 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6450   +/-   ##
=======================================
  Coverage   99.38%   99.38%           
=======================================
  Files         452      452           
  Lines       42779    42789   +10     
=======================================
+ Hits        42517    42527   +10     
  Misses        262      262           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: Christina Lee <christina@xanadu.ai>
Copy link
Contributor

@albi3ro albi3ro left a comment

Choose a reason for hiding this comment

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

Not entirely sure if we need to add it to the device test suite, since that's more about making sure devices support the various operations, but can't hurt.

This PR will definitely make a lot of people happy.

@mudit2812 mudit2812 enabled auto-merge (squash) October 25, 2024 22:09
@mudit2812 mudit2812 disabled auto-merge October 25, 2024 22:24
@mudit2812 mudit2812 merged commit 61f2e1f into master Oct 25, 2024
40 checks passed
@mudit2812 mudit2812 deleted the sc-70976-hadamard-alias branch October 25, 2024 23:11
mudit2812 added a commit that referenced this pull request Nov 11, 2024
This PR adds `H` as an alias for the `Hadamard` operator. Main goal is
to enhance usability and consistency in gate naming.

**Related Shortcut Stories:**
[sc-70976]

---------

Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
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