Coder Social home page Coder Social logo

Comments (3)

dime10 avatar dime10 commented on May 28, 2024

@maliasadi, where would you say this issue stands, after #327 got merged?
At least the first point seems taken care of, but maybe the second is still relevant?

from catalyst.

erick-xanadu avatar erick-xanadu commented on May 28, 2024

The installation and support of ever device shouldn't be checked by PennyLane a priori. Catalyst must have its own device checking mechanism to check the installed backend devices. Currently, the frontend heavily relies on PL device infra so that every backend device has to pip install, otherwise PL throws an error complaining that the plugin/device isn't installed!

Can you explain what you want here? Why does Catalyst need its own device checking mechanism to check the installed backend devices? Don't we want to converge with how PL treats devices?

from catalyst.

maliasadi avatar maliasadi commented on May 28, 2024

The installation and support of every device shouldn't be dependent on PL a priori. Catalyst must have its own device checking mechanism to verify the installed backend devices. Currently, the frontend heavily relies on PL's device infrastructure, requiring every backend device to be installed via pip, otherwise, PL throws an error, complaining that the plugin/device isn't installed.

We're moving in an opposite direction with the device communication API. This suggestion is outdated.

Device options should be communicated through Catalyst and to the runtime, without the frontend needing to know hardcoded details about the devices.

That's on our roadmap and will be addressed by the communication API.

If the options must be cached/stored in the frontend, we can potentially utilize a dataclass that also facilitates the serialization of device_kwargs in the backend,

This is also not required anymore by getting the plugin systems fully implemented for all backend devices.

My main concerns regarding the addition of new backend devices have been thoroughly discussed in the past months and they have either been addressed or are now part of our roadmap. We are currently moving towards separating devices and dynamically loading them to improve scalability & flexibility, and we plan to implement a consistent device communication protocol. Let's close this issue as the objectives are being updated more in the opposite direction.

from catalyst.

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.