Coder Social home page Coder Social logo

Comments (3)

cgogolin avatar cgogolin commented on May 9, 2024
  • An even more radical change would be to move the looping over the operations in self._queue that currently has to be done in execute() out of the scope of responsibility of the individual plugins altogether. A lot of the things happening in that loop will be the same for every plugin (like checking whether operations are supported and of handling parameters) and so it would be good it not every plugin needed to replicate that code. Wouldn't it be better/enough if every plugin just had to define something like apply(op, wires), which would apply the gate/measurement appropriate for the given plugin and potentially return an appropriate result? I guess I will write the ProjectQ plugin internally like that, so that if you like this, we can take my implementation of execute() as a basis for the plugin agnostic implementation.

from pennylane.

cgogolin avatar cgogolin commented on May 9, 2024
  • @josh146 and @co9olguy: Please specify the life-cycle of a plugin Device more concretely. For example: With which sequence of calls to execute(), reset(), and shutdown() should the plugin be able to cope? Should a device be "reusable"? It would be best if you could do this by directly implementing unit tests that execute all life cycles that plugins must support.

from pennylane.

josh146 avatar josh146 commented on May 9, 2024

@cgogolin I agree completely with your original comment, and I think I agree as well with the second comment. The easier it is for plugin writers, the better.

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.