Skip to content

Conversation

ewinston
Copy link
Contributor

Some devices would return a basis of the form 'SU2+CNOT'.
If there are no commas in basis string it will be replaced
with u1,u2,u3,cx.id and a warning will be logged.

Description

Motivation and Context

Without this change the unroller just uses U and CX gates when it encounters this unrecognized basis specification. When all remote backends adopt the new basis specification this code can probably be elimintated, however, in the future it may be better for the unroller to throw an exception if it encounters such an error.

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Some devices would return a basis of the form 'SU2+CNOT'.
If there are no commas in basis string it will be replaced
with u1,u2,u3,cx.id and a warning will be logged.
Copy link
Member

@diego-plan9 diego-plan9 left a comment

Choose a reason for hiding this comment

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

Thanks as usual, @ewinston !

@diego-plan9 diego-plan9 merged commit df8033a into Qiskit:master Dec 21, 2017
taalexander pushed a commit to taalexander/qiskit-terra that referenced this pull request May 2, 2019
* Start release notes for Terra release 0.8

This commit starts the release notes for the Terra 0.8 release. They're
still a WIP, this is just the start and more details need to be flushed
out before the release.

* Fix lint and small tweaks
taalexander pushed a commit to taalexander/qiskit-terra that referenced this pull request May 2, 2019
This commit is a continuation of the release notes added in Qiskit#211. The
notes there weren't complete and still need to be flushed out more. This
commit starts off where that left off.
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
Some devices would return a basis of the form 'SU2+CNOT'.
If there are no commas in basis string it will be replaced
with u1,u2,u3,cx.id and a warning will be logged.
@ewinston ewinston deleted the conv_basis branch June 9, 2020 19:51
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