Skip to content

Allow StandardRB to handle a V2 backend without a coupling map (backport #1293)#1298

Merged
wshanks merged 2 commits into
stable/0.5from
mergify/bp/stable/0.5/pr-1293
Oct 31, 2023
Merged

Allow StandardRB to handle a V2 backend without a coupling map (backport #1293)#1298
wshanks merged 2 commits into
stable/0.5from
mergify/bp/stable/0.5/pr-1293

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify Bot commented Oct 30, 2023

This is an automatic backport of pull request #1293 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

`StandardRB` handles directed two-qubit gates differently from
bi-directional ones. For `BackendV2`, it used the `coupling_map` to
check for directionality but did not handle the case where the coupling
map was `None` which implies all to all connectivity. With this change,
`StandardRB` treats gates with no coupling map as bidirectional.

This issue first surfaced with qiskit-aer 0.13.0 which made
`AerSimulator` a `BackendV2` backend
(#1292).

(cherry picked from commit a34df8c)
@wshanks
Copy link
Copy Markdown
Collaborator

wshanks commented Oct 30, 2023

#1291 needs to be backported first.

@wshanks wshanks merged commit ab07b8e into stable/0.5 Oct 31, 2023
@wshanks wshanks deleted the mergify/bp/stable/0.5/pr-1293 branch October 31, 2023 03:26
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