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

Make architecture field optional in BackendInfo #1106

Merged
merged 2 commits into from
Nov 30, 2023

Conversation

yao-cqc
Copy link
Contributor

@yao-cqc yao-cqc commented Nov 1, 2023

We should avoid using Architecture([]) to specify unconstrained architectures for some simulator backends. This PR makes the architecture field in BackendInfo optional.

I think this is a API breaking change, but I'm not sure whether or how to provide a deprecation path. Any ideas are welcome! I'm not sure if this is an API breaking change. I'm also not so sure about what the correct behaviour of nodes() and n_nodes() should be when the architecture field is missing . Potentially we can allow them to return None as well.

Copy link
Collaborator

@cqc-alec cqc-alec left a comment

Choose a reason for hiding this comment

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

LGTM. After merging this we should make a release candidate and check if it breaks any of the extensions.

Ideally I would say nodes and n_nodes should be None, but that increases the chances of breaking dependencies' assumptions, so for now I would leave as is (so that they match current values).

@yao-cqc yao-cqc marked this pull request as ready for review November 30, 2023 10:49
@yao-cqc yao-cqc merged commit 24cec65 into develop Nov 30, 2023
28 checks passed
@yao-cqc yao-cqc deleted the make-architecture-optional-in-BackendInfo branch November 30, 2023 10:50
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