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

Update pytest coverage for CB trace norm #234

Merged
merged 2 commits into from
Nov 14, 2023
Merged

Conversation

purva-thakre
Copy link
Collaborator

@purva-thakre purva-thakre commented Nov 14, 2023

Description

Fixes #233

Todos

Notable points that this PR has either accomplished or will accomplish.

  • N/A

Questions

  • N/A

Status

  • Ready to go

@purva-thakre purva-thakre marked this pull request as ready for review November 14, 2023 12:36
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (79c309f) 96.4% compared to head (9df2816) 96.5%.

❗ Current head 9df2816 differs from pull request most recent head dafe5bf. Consider uploading reports for the commit dafe5bf to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #234     +/-   ##
========================================
+ Coverage    96.4%   96.5%   +0.1%     
========================================
  Files         146     146             
  Lines        2956    2956             
  Branches      728     728             
========================================
+ Hits         2851    2854      +3     
+ Misses         61      59      -2     
+ Partials       44      43      -1     

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

@purva-thakre purva-thakre requested a review from vprusso November 14, 2023 12:46
Copy link
Owner

@vprusso vprusso left a comment

Choose a reason for hiding this comment

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

A few minor things, but overall LGTM! I like how the tests are starting to become simpler and are also more specific with the message matching on error output. Nice work!



def test_cb_trace_norm_unitaries_channel():
"""The diamond norm of phi = id- U id U* is the diameter of the smallest circle that contains the eigenvalues of U."""
"""The diamond norm of phi = id- U id U* is the diameter of the smallest circle
Copy link
Owner

Choose a reason for hiding this comment

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

I wonder if the linter is over-aggressively making new lines here when it shouldn't be?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Probably due to us having different configuration files with incompatible line lengths.

@purva-thakre purva-thakre merged commit f47dea6 into master Nov 14, 2023
2 checks passed
@purva-thakre purva-thakre deleted the pytest_cb_trace_norm branch November 14, 2023 13:56
vprusso pushed a commit that referenced this pull request Nov 15, 2023
* add missing test

* undo docstring change: linter
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.

Add tests for toqito/channel_metrics/completely_bounded_trace_norm.py: 48-49
2 participants