-
Notifications
You must be signed in to change notification settings - Fork 127
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
Backend argument in experiment constructors #1020
Comments
Also readout error experiments and tomography experiments. |
Personally, I would prefer that If we want to preserve the ability to initialize an experiment instance and inspect it without setting up a specific backend, I wonder if we could define a generic backend and set it as the default argument for when a backend is not passed by the user ( |
Note that, with the generic experiment, we again don't catch cases where experiment developers simply forget |
@yaelbh readout error and tomography now all take backend kwargs in init since #1019 #998. I personally like having backend as an optional kwarg in all experiments, so you can either set it at init, or you can set it at run. So in principle you can configure an experiment and run it an on multiple backends. That said it would likely allow some simplifying of the base experiment if backend could only be set at init (you could remove the backend setter and set_backend method). The purpose of the |
In a meeting we decided:
|
One of the considerations to not enforcing was related to the fact backends are not serializable. |
BaseExperiment
has an optionalbackend
parameter. Do we want to make it mandatory, and remove thebackend
parameter from therun
method?If no: some experiments don't have a
backend
parameter in their constructors. Do we want, for the sake of uniformity, to instruct that all the experiments have this parameter? How can we enforce this instruction?The text was updated successfully, but these errors were encountered: