Skip to content

Conversation

ismaila-at-za-ibm
Copy link
Contributor

Description

The _modifiers wrapper was calling invert because the invert flag was set. But this does another level of inverting which is not required. So we have removed it.

Motivation and Context

Fixes Bug #511

How Has This Been Tested?

Fixed the test case (apologies for it being wrong in the first place).

Types of changes

  • [ x] 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:

  • [x ] My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • [x ] I have read the CONTRIBUTING document.
  • [ x] I have added tests to cover my changes.
  • [x ] All new and existing tests passed (only tested the affected test).

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 @ismaila-at-za-ibm for the neat fix!

@diego-plan9 diego-plan9 merged commit 37f0209 into Qiskit:master Jun 5, 2018
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
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