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

Change wire repr #5958

Merged
merged 12 commits into from
Jul 12, 2024
Merged

Change wire repr #5958

merged 12 commits into from
Jul 12, 2024

Conversation

austingmhuang
Copy link
Contributor

@austingmhuang austingmhuang commented Jul 5, 2024

Context:
To accommodate the implementation of qml.registers, the _repr_ of Wires should be something more copy-paste friendly rather than what it is currently

Description of the Change:
The _repr_ of Wires is now Wires([0]) rather than <Wires = [0]>

Benefits:
Easier to copy and paste

Possible Drawbacks:
Might make docs confusing in other places. Not sure where else <Wires = ...> notation will be found in docs.

Related GitHub Issues:

@austingmhuang
Copy link
Contributor Author

[sc-67920]

@trbromley
Copy link
Contributor

Tagging @isaacdevlugt for visibility - not sure if this PR is ready to take a look at yet.

@austingmhuang
Copy link
Contributor Author

austingmhuang commented Jul 9, 2024

Tagging @isaacdevlugt for visibility - not sure if this PR is ready to take a look at yet.

It's ready! It's a very small PR that just addresses the changes that come about with changing the __repr__ of Wires, notably in the docs and in other tests.

Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.67%. Comparing base (0ad43d2) to head (4799b7d).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5958      +/-   ##
==========================================
- Coverage   99.67%   99.67%   -0.01%     
==========================================
  Files         425      425              
  Lines       40926    40630     -296     
==========================================
- Hits        40793    40496     -297     
- Misses        133      134       +1     

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

Copy link
Contributor

@isaacdevlugt isaacdevlugt left a comment

Choose a reason for hiding this comment

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

Nice!

@austingmhuang austingmhuang enabled auto-merge (squash) July 12, 2024 13:19
@austingmhuang austingmhuang merged commit dbb26f2 into master Jul 12, 2024
40 checks passed
@austingmhuang austingmhuang deleted the change_wire_repr branch July 12, 2024 14:15
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.

4 participants