Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.

Remove broken line from transpiler passes tutorial#985

Merged
nonhermitian merged 1 commit intoQiskit:masterfrom
mtreinish:unblock-meta-release
Aug 7, 2020
Merged

Remove broken line from transpiler passes tutorial#985
nonhermitian merged 1 commit intoQiskit:masterfrom
mtreinish:unblock-meta-release

Conversation

@mtreinish
Copy link
Copy Markdown
Member

Summary

The transpiler passes tutorial was previously replacing the 'properties'
attribute of the FakeTokyo backend with an empty dictionary {}. However,
this is a type violation as properties is defined (and has been for a
very long time) as a method in the base abstract backend class. [1] This
didn't block anything because nothing the call path of the notebook was
using properties as a callable before. But in terra 0.15.0 this has
changed and backend.properties() is accessed in the setup for a
transpilation and this is causing a failure. This commit removes the use
overloading of the attribute as it doesn't seem to serve a purpose
anymore (I presume it was there for when NoiseAdaptiveLayout was in
level 3) which will unblock Qiskit/qiskit#998

Details and comments

[1] https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/providers/basebackend.py#L65

The transpiler passes tutorial was previously replacing the 'properties'
attribute of the FakeTokyo backend with an empty dictionary {}. However,
this is a type violation as properties is defined (and has been for a
very long time) as a method in the base abstract backend class. [1] This
didn't block anything because nothing the call path of the notebook was
using properties as a callable before. But in terra 0.15.0 this has
changed and backend.properties() is accessed in the setup for a
transpilation and this is causing a failure. This commit removes the use
overloading of the attribute as it doesn't seem to serve a purpose
anymore (I presume it was there for when NoiseAdaptiveLayout was in
level 3) which will unblock Qiskit/qiskit#998

[1] https://github.com/Qiskit/qiskit-terra/blob/master/qiskit/providers/basebackend.py#L65
@nonhermitian nonhermitian merged commit 6c9c85a into Qiskit:master Aug 7, 2020
@mtreinish mtreinish deleted the unblock-meta-release branch August 7, 2020 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants