We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from_backend seems to do nothing.
Take a look at the source code here in EstimatorV2
def from_backend(self, backend, **options): """use external backend""" self._backend.from_backend(backend, **options)
The method from_backend is a class method. Not sure why it's called on an instance of the object and it's return is not used to replace self._backend.
from_backend
self._backend
Should update self._backend
Maybe the follwiong, not. sure if we need to also update other options, etc. such as in self.options.backend_options
self.options.backend_options
def from_backend(self, backend, **options): """use external backend""" self._backend = AerSimulator.from_backend(backend, **options)
The text was updated successfully, but these errors were encountered:
#2120 resolved this issue. Thanks.
Sorry, something went wrong.
doichanj
No branches or pull requests
Informations
What is the current behavior?
from_backend seems to do nothing.
Steps to reproduce the problem
Take a look at the source code here in EstimatorV2
The method
from_backend
is a class method. Not sure why it's called on an instance of the object and it's return is not used to replaceself._backend
.What is the expected behavior?
Should update self._backend
Suggested solutions
Maybe the follwiong, not. sure if we need to also update other options, etc. such as in
self.options.backend_options
The text was updated successfully, but these errors were encountered: