Skip to content
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

Aer backend giving depreciation warnings using terra master #227

Closed
nonhermitian opened this issue Jun 6, 2019 · 2 comments · Fixed by #228
Closed

Aer backend giving depreciation warnings using terra master #227

nonhermitian opened this issue Jun 6, 2019 · 2 comments · Fixed by #228
Labels
bug Something isn't working

Comments

@nonhermitian
Copy link
Contributor

Informations

  • Qiskit Aer version: master
  • Python version:
  • Operating system:

What is the current behavior?

/miniconda3/lib/python3.7/site-packages/qiskit/providers/aer/backends/aerbackend.py:119: DeprecationWarning: The as_dict() method is deprecated, use to_dict().
  config = original_config.as_dict()
/miniconda3/lib/python3.7/site-packages/qiskit/providers/aer/backends/aerbackend.py:54: DeprecationWarning: The as_dict() method is deprecated, use to_dict().
  return obj.as_dict()

Steps to reproduce the problem

What is the expected behavior?

Suggested solutions

@nonhermitian nonhermitian added the bug Something isn't working label Jun 6, 2019
@atilag
Copy link
Member

atilag commented Jun 6, 2019

We do have a NoiseModel::as_dict() method that we may want to change to .to_dict() the same way Terra did, otherwise our AerJSONEncoder class won't know how to serialize NoiseModel objects.

This is changing the API of an important component, just making sure @chriseclectic and @gadial are fine with this change, and what implications have (more than changing the tutorials).
I'll put a depreaction warning in our NoiseModel::as_dict() method so we can remove it for 0.3.x or 0.4.x.

@atilag
Copy link
Member

atilag commented Jun 6, 2019

For the sake of consistency, I have changed all our .as_dict() API methods, to to_dict().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants