Skip to content

Commit

Permalink
Reduce numpy dependency version, so that cirq can be accommodated (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
amirebrahimi authored Apr 5, 2023
1 parent 615efac commit af68334
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 53 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Stabilizer States
[![pypi](https://img.shields.io/pypi/v/stabilizer-states.svg)](https://pypi.org/project/stabilizer-states/)

A supporting, optional package to [stabilizer-toolkit](https://github.com/amirebrahimi/stabilizer-toolkit), which provides the following stabilizer state datasets:
A supporting, optional package to [stabilizer-toolkit](https://github.com/amirebrahimi/stabilizer-toolkit), which
provides the following stabilizer state datasets:
* 1 qubit stabilizer states (all: 6)
* 2 qubit stabilizer states (all: 60)
* 3 qubit stabilizer states (all: 1080)
Expand All @@ -17,7 +18,8 @@ S1 = StabilizerStates(1)
print(S1.shape)
```

It's worth noting that if you are only using the real or ternary form of the states, then in some cases the dataset will load quicker (e.g. 5 and 6 qubit datasets):
It's worth noting that if you are only using the real or ternary form of the states, then in some cases the dataset will
load quicker (e.g. 5 and 6 qubit datasets):
```python
from stabilizer_states import StabilizerStates
S5 = StabilizerStates(5, "ternary")
Expand All @@ -31,7 +33,8 @@ pip install stabilizer-states
```

## Development
If you are wishing to work with a development copy, then clone this repository and install via [`poetry`](https://python-poetry.org/docs/#installation):
If you'd like to work with a development copy, then clone this repository and install via
[`poetry`](https://python-poetry.org/docs/#installation):
```shell
poetry install -vvv --with dev
```
95 changes: 48 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "stabilizer-states"
version = "0.1.0"
version = "0.1.1"
description = "A supporting (optional) library for stabilizer-toolkit that provides stabilizer states."
authors = ["Amir Ebrahimi <[email protected]>"]
license = "Apache-2.0"
Expand All @@ -9,7 +9,7 @@ packages = [{include = "stabilizer_states"}]

[tool.poetry.dependencies]
python = "^3.9"
numpy = "^1.24.2"
numpy = "^1.23"

[tool.poetry.group.dev]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion stabilizer_states/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# Copyright 2023, Amir Ebrahimi. All Rights Reserved
# Copyright 2023, Amir Ebrahimi. All Rights Reserved.
#

0 comments on commit af68334

Please sign in to comment.