Qiskit-terra: Circuit global phase not bounded in [0, 2pi)

Created on 30 Sep 2020  路  6Comments  路  Source: Qiskit/qiskit-terra


Information

  • Qiskit Terra version: master
  • Python version:
  • Operating system:

What is the current behavior?

Screen Shot 2020-09-30 at 15 40 42

Steps to reproduce the problem

What is the expected behavior?

The phase is bounded in [0, 2pi).

Suggested solutions

Probably just phase % 2*np.pi

bug good first issue

Most helpful comment

@nonhermitian
This issue has already been addressed, I checked the files global_phase has already been done equal to phase % 2*np.pi and I am getting the correct results for all values of global_phase given as an input.

All 6 comments

Hi @nonhermitian can I give a try on this. I would like to work on this.

Sure, go for it.

@shashwat-1234 - Just in case you are not working on this one, can I pick it up?

@nonhermitian
This issue has already been addressed, I checked the files global_phase has already been done equal to phase % 2*np.pi and I am getting the correct results for all values of global_phase given as an input.

@nonhermitian
I think is issue is sorted already.

Ok then will close. Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

indisoluble picture indisoluble  路  3Comments

HimanshuBansal112 picture HimanshuBansal112  路  3Comments

jaygambetta picture jaygambetta  路  6Comments

cbjuan picture cbjuan  路  3Comments

derivation picture derivation  路  5Comments