Giter Club home page Giter Club logo

Comments (5)

smite avatar smite commented on August 27, 2024

Having read the discussion in the appendix of openqml_formalism.tex and after thinking about it myself, I would summarize our conclusion as

  1. If you only have gaussian gates and order-m polynomial observables (in x and p), in Heisenberg picture the gates act as linear transformations on (I, x, p) and thus the observables remain order-m. You can symbolically differentiate the transformation matrix and obtain an expression for the derivative which is another linear transformation on (I, x, p). Hence you should always be able to evaluate it in the lab by measuring a number of order-m observables and computing the proper linear combination of the results. This can be implemented in code.

  2. If you also have non-gaussian gates, things get much more complicated. The gates no longer act as mere linear transformations on (I, x, p) and thus observables may be mapped to higher-order observables by each non-gaussian gate. It could probably be handled in the code, but I'm not sure how you could easily evaluate the resulting expectation values in the lab. This makes sense, since gaussian optics is intuitively "easy", non-gaussian is "hard".

Since one important design principle of OpenQML is that it's not just a simulator but you can also run the gradient algorithms on quantum hardware, I would suggest adding analytic CV gradients for gaussian circuits only in v0.1.

from pennylane.

mariaschuld avatar mariaschuld commented on August 27, 2024

I fully support your summary. But I would implement analytic gradients for Gaussian circuits and operators up to quadratic in version 0.0 (is that the first one?). So we have something to also guide the attention to CV circuits.

We could check a circuit for non-Gaussianness and then choose the differentiation method...

from pennylane.

mariaschuld avatar mariaschuld commented on August 27, 2024

I created a new branch and will start to write up the theory we have so far in the main manuscript.

from pennylane.

co9olguy avatar co9olguy commented on August 27, 2024

Still a couple days for inspiration to strike, but it's looking like we'll stick with Gaussian-only circuits for CV automatic differentiation :)

We need to start planning for how to implement this.

from pennylane.

co9olguy avatar co9olguy commented on August 27, 2024

The research deadline has now passed. We will implement automatic gradients for Gaussian CV circuits: gates from the Gaussian set and measurements of x, p, xx, xp+px, and pp.

@smite can you make this your next task to implement this? Loop in @mariaschuld @cgogolin or myself as necessary to clear up anything

from pennylane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.