qml icon indicating copy to clipboard operation
qml copied to clipboard

Differentiable classical shadows

Open Qottmann opened this issue 3 years ago • 6 comments

Brief demo highlighting

  • classical shadow theory
  • new PennyLane implementations, i.e. differentiability
  • compare quantum resources with standard methods

Qottmann avatar Aug 23 '22 12:08 Qottmann

Right now the build has trouble importing classical_shadow from pennylane even though this is branched against dev - any idea what is going wrong here?

Qottmann avatar Aug 25 '22 21:08 Qottmann

Update: This version is now somewhat complete in terms of its contents and the points I am trying to make. However, it is not really polished yet. Especially, the code for the two examples of measuring one single and all q-local observables is quite lengthy.

Generally I am not sure if it is worth making that case for all and one single observables explicitly, since the results are rather "obvious" (but it still feels right to demonstrate it). Something to consider moving forward.

It renders locally but there are some CI problems that need to be taken care of. Maybe @rashidnhm can help? It seems it is not pulling the latest master from pennylane which includes the new functionalities I am showcasing.

Qottmann avatar Aug 26 '22 21:08 Qottmann

Update: This version is now somewhat complete in terms of its contents and the points I am trying to make. However, it is not really polished yet. Especially, the code for the two examples of measuring one single and all q-local observables is quite lengthy.

Generally I am not sure if it is worth making that case for all and one single observables explicitly, since the results are rather "obvious" (but it still feels right to demonstrate it). Something to consider moving forward.

It renders locally but there are some CI problems that need to be taken care of. Maybe @rashidnhm can help? It seems it is not pulling the latest master from pennylane which includes the new functionalities I am showcasing.

@Qottmann this pull-request might be another scenario where we may want to ignore the qml cache while building the demo. Since the update to pennylane is external it could be that the cached version of pennylane here does not have the updated function (this would depend on when that function was added and when this PR was opened). So I think first thing to try would be to ignore the cache and see if the error persists.

rashidnhm avatar Aug 27 '22 06:08 rashidnhm

@Qottmann I've added the ignore-cache label, please push another commit to your branch to trigger the builds again.

rashidnhm avatar Aug 27 '22 06:08 rashidnhm

Thank you for opening this pull request.

You can find the built site at this link.

Deployment Info:

  • Pull Request ID: 557
  • Deployment SHA: e4aec0b461f18c8c530f4b38428cc651066fedec (The Deployment SHA refers to the latest commit hash the docs were built from)

Note: It may take several minutes for updates to this pull request to be reflected on the deployed site.

github-actions[bot] avatar Aug 29 '22 03:08 github-actions[bot]

PR was closed automatically as the dev branch was recreated. Re-opened the PR and now it targets master.

If the demo does use any post-v0.26.0 features from PennyLane, the target branch should be changed again to dev.

antalszava avatar Sep 21 '22 16:09 antalszava

Hey @Qottmann , you removed the changes in the .rst file. Your demo does not appear in any category now

KetpuntoG avatar Sep 29 '22 22:09 KetpuntoG

Good catch, it was still in my browser's cache and it got lost with the big merge with the master branch 👍 Btw, @KetpuntoG do you have an idea for a better thumbnail?

Qottmann avatar Sep 30 '22 12:09 Qottmann

On Monday I will continue with the review 😄 I've updated the thumbnail, let me know if you think it's okey FYI, the idea is to publish this demo 11 Oct 💪

KetpuntoG avatar Sep 30 '22 20:09 KetpuntoG

In the end, as you said @Qottmann , it was found that updating the pyscf to 2.1.1 fixed the warning problem. There was only a demo in which it was being used and the update did not break anything. Thank you for the work carried out in these demos!!

KetpuntoG avatar Oct 07 '22 18:10 KetpuntoG