unitaryfund / mitiq

Mitiq is an open source toolkit for implementing error mitigation techniques on most current intermediate-scale quantum computers.
https://mitiq.readthedocs.io
GNU General Public License v3.0
363 stars 160 forks source link

Package for alpha release #230

Closed willzeng closed 4 years ago

willzeng commented 4 years ago

For an alpha release we'll want to ensure at least that:

nathanshammah commented 4 years ago
nathanshammah commented 4 years ago

It will be useful to have that version on PyPI – it will also match the first Github release. We'll then update with the subsequent release signaling the closing of this milestone Alpha v4 (on both PyPI and GH, and possibly also on conda-forge if we wish).

nathanshammah commented 4 years ago

@willzeng @rmlarose @andreamari can you please test locally that the Test PyPI version works for you or you can reproduce my error (I'm on mac)? You can do in a new environment:

conda create -n testpypi37 python=3.7
conda activate testpypi37
pip install -i https://test.pypi.org/simple/ mitiq==0.1a1

The following error appears:

ERROR: Could not find a version that satisfies the requirement scipy~=1.4.1 (from mitiq==0.1a1) (from versions: 0.1)
ERROR: No matching distribution found for scipy~=1.4.1 (from mitiq==0.1a1)

both for python 3.7 and 3.8 fresh new conda environments. I faintly remember encountering a similar issue for version 0.0.0.

When this is sorted out, I'll update also on PyPI.

willzeng commented 4 years ago

I followed these instructions and got this error:

ERROR: Could not find a version that satisfies the requirement numpy~=1.18.1 (from mitiq==0.1a1) (from versions: 1.9.3)
ERROR: No matching distribution found for numpy~=1.18.1 (from mitiq==0.1a1)

Am on Python 3.7.2

Regarding github pages vs. readthedocs. I'm fine either way, just pick whichever you'll find easier. $5 a month is no big deal

andreamari commented 4 years ago

@nathanshammah I get for both cases (Python 3.7 and 3.8) the same error as Will:

ERROR: Could not find a version that satisfies the requirement numpy~=1.18.1 (from mitiq==0.1a1) (from versions: 1.9.3)
ERROR: No matching distribution found for numpy~=1.18.1 (from mitiq==0.1a1)
nathanshammah commented 4 years ago

@willzeng @andreamari please retry with

pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.python.org/simple/ mitiq==0.1a1

It looks like testpypi is looking for the required dependencies therein (indeed numpy is there only for v. 1.9) instead that on the real pypi.

andreamari commented 4 years ago

@nathanshammah it works for me!

willzeng commented 4 years ago

@nathanshammah This worked for me as well. Should we be thinking about upgrading our numpy dependency? We could make a separate issue for that.