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

Remove the pad argument from amplitude embedding template #1805

Merged
merged 13 commits into from
Oct 28, 2021

Conversation

Jaybsoni
Copy link
Contributor

Deprecating the pad argument in AmplitudeEmbedding for the next release.

@github-actions
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@Jaybsoni Jaybsoni requested a review from rmoyard October 25, 2021 20:17
@Jaybsoni Jaybsoni changed the title [WIP] Remove the pad argument from amplitude embedding template Remove the pad argument from amplitude embedding template Oct 25, 2021
@codecov
Copy link

codecov bot commented Oct 25, 2021

Codecov Report

Merging #1805 (90e9ceb) into master (c81a038) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1805      +/-   ##
==========================================
- Coverage   98.92%   98.92%   -0.01%     
==========================================
  Files         209      209              
  Lines       15733    15727       -6     
==========================================
- Hits        15564    15558       -6     
  Misses        169      169              
Impacted Files Coverage Δ
pennylane/transforms/qfunc_transforms.py 100.00% <ø> (ø)
pennylane/templates/embeddings/amplitude.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c81a038...90e9ceb. Read the comment docs.

@antalszava
Copy link
Contributor

antalszava commented Oct 25, 2021

Hi @Jaybsoni, just a fly-by comment: don't forget to add an item to the Breaking Changes section about this. 🙂 (Users who've used pad before will have their codes break.)

Also, at a first glance, it will likely break tutorial_multiclass_classification.py in the QML repo.

@Jaybsoni
Copy link
Contributor Author

Hi @Jaybsoni, just a fly-by comment: don't forget to add an item to the Breaking Changes section about this. 🙂 (Users who've used pad before will have their codes break.)

Also, at a first glance, it will likely break tutorial_multiclass_classification.py in the QML repo.

@antalszava, Thanks for the reminder! I will update the change log! I can also update the demo!

Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

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

It looks good to me, I don't why coverage is complaining. Can you check it locally?

@Jaybsoni
Copy link
Contributor Author

Jaybsoni commented Oct 27, 2021

Local coverage report:

branch: master
image

branch: deprecate_pad_arg
image

Not sure why the overall coverage has decreased since the coverage for the amplitude.py file increased. I think this is good to merge? @josh146, @antalszava any ideas on what could be missing or can we just merge it?

@rmoyard
Copy link
Contributor

rmoyard commented Oct 27, 2021

@Jaybsoni Normally it is just because more lines were deleted than added and CodeCoverage does not like that!

@Jaybsoni
Copy link
Contributor Author

@Jaybsoni Normally it is just because more lines were deleted than added and CodeCoverage does not like that!

I see! Well in that case I think its good to go. Let me know if there is anything else you think needs to be changed

@Jaybsoni Jaybsoni requested a review from rmoyard October 27, 2021 19:17
Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

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

It looks good to me :100 @josh146 In my opinion you can bypass the coverage check

@josh146
Copy link
Member

josh146 commented Oct 28, 2021

Normally it is just because more lines were deleted than added and CodeCoverage does not like that!

We should probably read through the codecov documentation, maybe there is a setting we can change in our codecov configuration file to avoid this from happening 🤔

@josh146 josh146 merged commit a97ac88 into master Oct 28, 2021
@josh146 josh146 deleted the deprecate_pad_arg branch October 28, 2021 07:09
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.

None yet

4 participants