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

[QIM-8] quantum fisher information (new) #2684

Merged
merged 16 commits into from
Jun 10, 2022
Merged

[QIM-8] quantum fisher information (new) #2684

merged 16 commits into from
Jun 10, 2022

Conversation

Qottmann
Copy link
Contributor

Context:

Setting up a new PR of the previous (2676) due to many changes that underwent in the previous branches.

@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.

@codecov
Copy link

codecov bot commented Jun 10, 2022

Codecov Report

Merging #2684 (d12a001) into master (6c81c07) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #2684   +/-   ##
=======================================
  Coverage   99.61%   99.61%           
=======================================
  Files         251      251           
  Lines       20675    20682    +7     
=======================================
+ Hits        20595    20602    +7     
  Misses         80       80           
Impacted Files Coverage Δ
pennylane/transforms/metric_tensor.py 100.00% <ø> (ø)
pennylane/qinfo/__init__.py 100.00% <100.00%> (ø)
pennylane/qinfo/transforms.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 6c81c07...d12a001. Read the comment docs.

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 💯 just one minor comment

@rmoyard rmoyard merged commit 5d83fdf into master Jun 10, 2022
@rmoyard rmoyard deleted the qfisher branch June 10, 2022 21:59
Comment on lines +474 to +475
# TODO: ``hardware`` argument will be obsolete in future releases when ``shots`` can be inferred.
if hardware:
Copy link
Member

@josh146 josh146 Jun 11, 2022

Choose a reason for hiding this comment

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

@eddddddy / @Qottmann: I think we should be able to infer this :) Via something like:

if qnode.device.shots is not None:

I think it might be best to make this change in the feature freeze week, for two reasons:

  • Consistency with the rest of PennyLane (where there is no hardware option)
  • Because, more accurately, the logic here is more about 'are shots finite', rather than 'is the device hardware'. There will be cases where you are using a simulator, but will be using finite shots, so this may confuse the reader!

if hardware:

def wrapper(*args0, **kwargs0):
return 4 * metric_tensor(qnode, *args, **kwargs)(*args0, **kwargs0)
Copy link
Member

Choose a reason for hiding this comment

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

It is assumed here that qnode is a QNode, so you'll need to update the docstring to remove mention of the tape!

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

3 participants