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

Pip install from GitHub repository #66

Merged
merged 7 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

* Python source files are now linted using [PyLint](https://pypi.org/project/pylint/). [(#64)](https://github.com/XanaduAI/jet/pull/64)

### Documentation

* The `pip install` instructions no longer reference a missing PyPI package. [(#66)](https://github.com/XanaduAI/jet/pull/66)


### Contributors

This release contains contributions from (in alphabetical order):
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ as well as all dependencies, can be done using pip:

.. code-block:: bash

pip install quantum-jet
pip install git+https://github.com/XanaduAI/jet#egg=quantum-jet

To build the Jet Python distribution locally, a BLAS library with a CBLAS
interface and a C++ compiler with C++17 support is required. Simply run
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = "0.2.1"
from jet import __version__ as release

# The short X.Y version.
version = re.match(r"^(\d+\.\d+)", release).expand(r"\1")
Expand Down
2 changes: 1 addition & 1 deletion include/jet/Version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ constexpr size_t MAJOR_VERSION = 0;
constexpr size_t MINOR_VERSION = 2;

/// Patch version number of Jet.
constexpr size_t PATCH_VERSION = 1;
constexpr size_t PATCH_VERSION = 2;

/**
* @brief Returns the current Jet version.
Expand Down
2 changes: 1 addition & 1 deletion python/xir/interfaces/strawberryfields_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def to_xir(prog, **kwargs):
output_decl = Declaration(name, declaration_type="output")
xir.add_declaration("output", output_decl)

params = dict()
params = {}
# special case to take into account 'select' keyword argument
if cmd.op.select is not None:
params["select"] = cmd.op.select
Expand Down
2 changes: 1 addition & 1 deletion python/xir/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_floats(params: Params) -> Params:
params_with_floats.append(p)

elif isinstance(params, Dict):
params_with_floats = dict()
params_with_floats = {}
Mandrenkov marked this conversation as resolved.
Show resolved Hide resolved
for k, v in params.items():
if isinstance(v, DecimalComplex):
params_with_floats[k] = complex(v)
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def build_extension(self, ext):

requirements = [
"lark-parser>=0.11.0",
"numpy>=1.0.0",
# Necessary until https://github.com/numba/numba/issues/7176 is resolved.
"numpy<1.21.0",
"StrawberryFields==0.18.0",
"thewalrus>=0.15.0",
]
Expand Down