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

scipy minimal required version does not have unitary_group #829

Closed
diego-plan9 opened this issue Aug 28, 2018 · 8 comments · Fixed by #713
Closed

scipy minimal required version does not have unitary_group #829

diego-plan9 opened this issue Aug 28, 2018 · 8 comments · Fixed by #713
Assignees
Labels
bug Something isn't working type: qa Issues and PRs that relate to testing and code quality
Milestone

Comments

@diego-plan9
Copy link
Member

Informations

The changes included in #760 require a scipy version that provides scipy.stats.unitary_group, which is not available in the minimal version currently required for scipy:

scipy>=0.19

We should look for the minimal version of scipy that includes that function (seems to be 1.0) and update the dependencies accordingly - otherwise we risk installations with broken qiskit.tools.qi.qi in some cases.

@diego-plan9 diego-plan9 added bug Something isn't working type: qa Issues and PRs that relate to testing and code quality labels Aug 28, 2018
@diego-plan9 diego-plan9 added this to the 0.6 milestone Aug 28, 2018
@jaygambetta
Copy link
Member

@diego-plan9 can you just update the dependencies as we don't want to write this function.

@delapuente
Copy link
Contributor

This is on its way to be fixed via #713

@dtmcclure
Copy link
Member

dtmcclure commented Feb 4, 2019

@diego-plan9 @delapuente this issue still has not been fixed: requirements.txt still lists scipy>=0.19, and qiskit.tools.qi.qi still tries to import unitary_group from scipy.stats

@diego-plan9
Copy link
Member Author

Thanks for reporting, @dtmcclure - can you paste the version of scipy you have installed that is resulting in a problem?

I'm reopening the issue so we can investigate further - and actually pinging @ewinston as he might have more information. Based on https://github.com/Qiskit/qiskit-terra/pull/713/files#r214942849:

For some reason scipy 0.19.1 doesn't implement unitary_group although it does before (0.19.0) and after (1.0).

But it could be the case that the exclusion of 0.19.1 might not be enough.

@ewinston
Copy link
Contributor

ewinston commented Feb 4, 2019

I thought this was in 0.19.0 but I couldn't find it. Maybe just change requirement to >=1.0.0 or maybe Jay has other idea?

@dtmcclure
Copy link
Member

dtmcclure commented Feb 4, 2019 via email

@jaygambetta
Copy link
Member

@dtmcclure can you check now

@dtmcclure
Copy link
Member

dtmcclure commented Feb 25, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working type: qa Issues and PRs that relate to testing and code quality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants