emu-mps 1.2.5__py3-none-any.whl → 1.2.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- emu_mps/__init__.py +1 -1
- emu_mps/mpo.py +1 -2
- emu_mps/mps.py +1 -2
- emu_mps/mps_backend_impl.py +1 -2
- emu_mps/mps_config.py +1 -2
- {emu_mps-1.2.5.dist-info → emu_mps-1.2.6.dist-info}/METADATA +7 -71
- {emu_mps-1.2.5.dist-info → emu_mps-1.2.6.dist-info}/RECORD +8 -9
- emu_mps/constants.py +0 -4
- {emu_mps-1.2.5.dist-info → emu_mps-1.2.6.dist-info}/WHEEL +0 -0
emu_mps/__init__.py
CHANGED
emu_mps/mpo.py
CHANGED
|
@@ -6,10 +6,9 @@ import torch
|
|
|
6
6
|
|
|
7
7
|
from emu_mps.algebra import add_factors, scale_factors, zip_right
|
|
8
8
|
from emu_base.base_classes.operator import FullOp, QuditOp
|
|
9
|
-
from emu_base import Operator, State
|
|
9
|
+
from emu_base import Operator, State, DEVICE_COUNT
|
|
10
10
|
from emu_mps.mps import MPS
|
|
11
11
|
from emu_mps.utils import new_left_bath, assign_devices
|
|
12
|
-
from emu_mps.constants import DEVICE_COUNT
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
def _validate_operator_targets(operations: FullOp, nqubits: int) -> None:
|
emu_mps/mps.py
CHANGED
|
@@ -6,7 +6,7 @@ from typing import Any, List, Optional, Iterable
|
|
|
6
6
|
|
|
7
7
|
import torch
|
|
8
8
|
|
|
9
|
-
from emu_base import State
|
|
9
|
+
from emu_base import State, DEVICE_COUNT
|
|
10
10
|
from emu_mps import MPSConfig
|
|
11
11
|
from emu_mps.algebra import add_factors, scale_factors
|
|
12
12
|
from emu_mps.utils import (
|
|
@@ -16,7 +16,6 @@ from emu_mps.utils import (
|
|
|
16
16
|
tensor_trace,
|
|
17
17
|
n_operator,
|
|
18
18
|
)
|
|
19
|
-
from emu_mps.constants import DEVICE_COUNT
|
|
20
19
|
|
|
21
20
|
|
|
22
21
|
class MPS(State):
|
emu_mps/mps_backend_impl.py
CHANGED
|
@@ -11,9 +11,8 @@ import torch
|
|
|
11
11
|
import time
|
|
12
12
|
from pulser import Sequence
|
|
13
13
|
|
|
14
|
-
from emu_base import Results, State, PulserData
|
|
14
|
+
from emu_base import Results, State, PulserData, DEVICE_COUNT
|
|
15
15
|
from emu_base.math.brents_root_finding import BrentsRootFinder
|
|
16
|
-
from emu_mps.constants import DEVICE_COUNT
|
|
17
16
|
from emu_mps.hamiltonian import make_H, update_H
|
|
18
17
|
from emu_mps.mpo import MPO
|
|
19
18
|
from emu_mps.mps import MPS
|
emu_mps/mps_config.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: emu-mps
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: Pasqal MPS based pulse emulator built on PyTorch
|
|
5
|
+
Project-URL: Documentation, https://pasqal-io.github.io/emulators/
|
|
6
|
+
Project-URL: Repository, https://github.com/pasqal-io/emulators
|
|
7
|
+
Project-URL: Issues, https://github.com/pasqal-io/emulators/issues
|
|
5
8
|
Author-email: Anton Quelle <anton.quelle@pasqal.com>, Mauro Mendizabal <mauro.mendizabal-pico@pasqal.com>, Stefano Grava <stefano.grava@pasqal.com>, Pablo Le Henaff <pablo.le-henaff@pasqal.com>
|
|
6
9
|
License: PASQAL OPEN-SOURCE SOFTWARE LICENSE AGREEMENT (MIT-derived)
|
|
7
10
|
|
|
@@ -22,80 +25,13 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
22
25
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
23
26
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
24
27
|
Requires-Python: >=3.10
|
|
25
|
-
Requires-Dist: emu-base==1.2.
|
|
28
|
+
Requires-Dist: emu-base==1.2.6
|
|
26
29
|
Description-Content-Type: text/markdown
|
|
27
30
|
|
|
28
31
|
<div align="center">
|
|
29
32
|
<img src="docs/logos/LogoTaglineSoftGreen.svg">
|
|
30
|
-
|
|
31
|
-
# Emu-MPS
|
|
32
33
|
</div>
|
|
33
34
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
As of this writing, Emu-MPS is provided for Linux and macOS but will not work under Windows.
|
|
37
|
-
|
|
38
|
-
## Installation
|
|
39
|
-
|
|
40
|
-
**Warning:** installing emu-mps will update pulser-core
|
|
41
|
-
|
|
42
|
-
### Using `hatch`, `uv` or any pyproject-compatible Python manager
|
|
43
|
-
|
|
44
|
-
To add `emu-mps` to your project, edit your `pyproject.toml` to add the line
|
|
45
|
-
|
|
46
|
-
```toml
|
|
47
|
-
"emu-mps"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
to the list of `dependencies`.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Using `pip` or `pipx`
|
|
54
|
-
To install the `pipy` package using `pip` or `pipx`
|
|
55
|
-
|
|
56
|
-
1. Create a `venv` if that's not done yet
|
|
57
|
-
|
|
58
|
-
```sh
|
|
59
|
-
$ python -m venv venv
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
2. Enter the venv
|
|
64
|
-
|
|
65
|
-
If you're running Unix:
|
|
66
|
-
|
|
67
|
-
```sh
|
|
68
|
-
$ . venv/bin/activate
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
If you're running Windows:
|
|
72
|
-
|
|
73
|
-
```sh
|
|
74
|
-
C:\> /path/to/new/virtual/environment/Scripts/activate
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
3. Install the package
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
$ pip install emu-mps
|
|
81
|
-
# or
|
|
82
|
-
$ pipx install emu-mps
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
Join us on [Slack](https://pasqalworkspace.slack.com/archives/C07MUV5K7EU) or by [e-mail](mailto:emulation@pasqal.com) to give us feedback about how you plan to use Emu-MPS or if you require specific feature-upgrades.
|
|
87
|
-
|
|
88
|
-
## Usage
|
|
89
|
-
|
|
90
|
-
For the time being, the easiest way to learn how to use this package is to look
|
|
91
|
-
at the [examples](examples/emu_mps_examples) and [notebooks](https://pasqal-io.github.io/emulators/latest/).
|
|
92
|
-
|
|
93
|
-
See also the [full documentation](https://github.com/pasqal-io/emulators/blob/main/docs/index.md) for
|
|
94
|
-
the API, information about contributing, benchmarks, etc.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## Getting in touch
|
|
35
|
+
# Welcome to the Pasqal analog emulators
|
|
98
36
|
|
|
99
|
-
|
|
100
|
-
- [GitHub Repository](https://github.com/pasqal-io/quantum-evolution-kernel) (source code, issue tracker).
|
|
101
|
-
- [Professional Support](https://www.pasqal.com/contact-us/) (if you need tech support, custom licenses, a variant of this library optimized for your workload, your own QPU, remote access to a QPU, ...)
|
|
37
|
+
Welcome, and please see the [GitHub pages](https://pasqal-io.github.io/emulators/) for a landing page to this repo.
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
emu_mps/__init__.py,sha256=
|
|
1
|
+
emu_mps/__init__.py,sha256=KphiJUrBt3vjS0e2_tQejeB12X3YwqrEhxwfF1QRXQE,646
|
|
2
2
|
emu_mps/algebra.py,sha256=ngPtTH-j2ZCBWoaJZXlkUyIlug7dY7Q92gzfnRlpPMA,5485
|
|
3
|
-
emu_mps/constants.py,sha256=41LYkKLUCz-oxPbd-j7nUDZuhIbUrnez6prT0uR0jcE,56
|
|
4
3
|
emu_mps/hamiltonian.py,sha256=LcBs6CKBb643a1e9AAVtQoUfa4L_0dIhLOKecx5OOWs,15864
|
|
5
|
-
emu_mps/mpo.py,sha256=
|
|
6
|
-
emu_mps/mps.py,sha256=
|
|
4
|
+
emu_mps/mpo.py,sha256=H5vkJvz4AfXfnPbvgWznBWpMUO8LnGL3_NAP3IhxZzQ,8740
|
|
5
|
+
emu_mps/mps.py,sha256=CcduX2BC4ArBwwF41w_FQCa6wqmynegQQC9zkK0EmgQ,17826
|
|
7
6
|
emu_mps/mps_backend.py,sha256=6fVaq-D4xyicYRjGjhqMEieC7---90LpfpbV7ZD7zkQ,2192
|
|
8
|
-
emu_mps/mps_backend_impl.py,sha256=
|
|
9
|
-
emu_mps/mps_config.py,sha256=
|
|
7
|
+
emu_mps/mps_backend_impl.py,sha256=Rp7WbT0Dto1G4ArqSLEzSHkJAuMIEZfUqUMP9Dyz31M,20838
|
|
8
|
+
emu_mps/mps_config.py,sha256=ydKN0OOaWCBcNd9V-4CU5ZZ4w1FRT-bbKyZQD2WCaME,3317
|
|
10
9
|
emu_mps/noise.py,sha256=h4X2EFjoC_Ok0gZ8I9wN77RANXaVehTBbjkcbY_GAmY,784
|
|
11
10
|
emu_mps/tdvp.py,sha256=TH4CcBNczRURXYGPXndWKDs0jWXz_x9ozM961uGiSOw,5711
|
|
12
11
|
emu_mps/utils.py,sha256=n9BcpuIz4Kl6EYlATaK8TKsyF-T7FTwbBo6KSAQYzl8,8066
|
|
13
12
|
emu_mps/optimatrix/__init__.py,sha256=lHWYNeThHp57ZrwTwXd0p8bNvcCv0w_AZ31iCWflBUo,226
|
|
14
13
|
emu_mps/optimatrix/optimiser.py,sha256=cVMdm2r_4OpbthcQuFMrJ9rNR9WEJRga9c_lHrJFkhw,6687
|
|
15
14
|
emu_mps/optimatrix/permutations.py,sha256=JRXGont8B4QgbkV9CzrA0w7uzLgBrmZ1J9aa0G52hPo,1979
|
|
16
|
-
emu_mps-1.2.
|
|
17
|
-
emu_mps-1.2.
|
|
18
|
-
emu_mps-1.2.
|
|
15
|
+
emu_mps-1.2.6.dist-info/METADATA,sha256=iUObGpVmQN3Y6GM_ScEFmFlY80htsWrIjo53ER2Flvw,3505
|
|
16
|
+
emu_mps-1.2.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
17
|
+
emu_mps-1.2.6.dist-info/RECORD,,
|
emu_mps/constants.py
DELETED
|
File without changes
|