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

Deprecate BackendData.is_simulator #1390

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

wshanks
Copy link
Collaborator

@wshanks wshanks commented Feb 3, 2024

No code in qiskit-experiments depends on is_simulator already and BackendV2 does not provide a standard way to check if a backend uses a simulator. The code currently tries checking if a backend is a subclass of some known fake backend classes from qiskit and qiskit-ibm-runtime, but this code is awkward and seems to be doing something awkward for little benefit.

No code in qiskit-experiments depends on `is_simulator` already and
`BackendV2` does not provide a standard way to check if a backend uses a
simulator. The code currently tries checking if a backend is a subclass
of some known fake backend classes from qiskit and qiskit-ibm-runtime,
but this code is awkward and seems to be doing something awkward for
little benefit.
@wshanks wshanks added this to the Release 0.6 milestone Feb 3, 2024
@wshanks
Copy link
Collaborator Author

wshanks commented Feb 3, 2024

This PR is a follow up to #1384 (comment).

Copy link
Collaborator

@coruscating coruscating left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't aware of anyone using this so I'm fine with removing it.

@wshanks wshanks added this pull request to the merge queue Feb 4, 2024
@wshanks
Copy link
Collaborator Author

wshanks commented Feb 4, 2024

I am not sure if it was ever used. It might have just been added because BackendV1.simulator existed and the class was trying to make the data equivalent between the two, but with the Qiskit deprecations the code was getting awkward to keep around unused.

Merged via the queue into qiskit-community:main with commit b4fc262 Feb 4, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants