emu-mps 1.2.3__py3-none-any.whl → 1.2.5__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 +2 -2
- emu_mps/algebra.py +19 -14
- emu_mps/constants.py +4 -0
- emu_mps/hamiltonian.py +3 -3
- emu_mps/mpo.py +26 -23
- emu_mps/mps.py +16 -29
- emu_mps/mps_backend.py +40 -3
- emu_mps/mps_backend_impl.py +61 -23
- emu_mps/mps_config.py +15 -1
- emu_mps/optimatrix/__init__.py +9 -0
- emu_mps/optimatrix/optimiser.py +234 -0
- emu_mps/optimatrix/permutations.py +94 -0
- emu_mps/tdvp.py +15 -32
- emu_mps/utils.py +10 -10
- emu_mps-1.2.5.dist-info/METADATA +101 -0
- emu_mps-1.2.5.dist-info/RECORD +18 -0
- emu_mps-1.2.3.dist-info/METADATA +0 -133
- emu_mps-1.2.3.dist-info/RECORD +0 -14
- {emu_mps-1.2.3.dist-info → emu_mps-1.2.5.dist-info}/WHEEL +0 -0
emu_mps-1.2.3.dist-info/METADATA
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: emu-mps
|
|
3
|
-
Version: 1.2.3
|
|
4
|
-
Summary: Pasqal MPS based pulse emulator built on PyTorch
|
|
5
|
-
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
|
-
License: Proprietary
|
|
7
|
-
Classifier: License :: Other/Proprietary License
|
|
8
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
-
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
10
|
-
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
11
|
-
Requires-Python: >=3.10
|
|
12
|
-
Requires-Dist: emu-base==1.2.3
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
<div align="center">
|
|
16
|
-
<img src="docs/logos/LogoTaglineSoftGreen.svg">
|
|
17
|
-
|
|
18
|
-
# Emu-MPS
|
|
19
|
-
</div>
|
|
20
|
-
|
|
21
|
-
**EMU-MPS** is a Pulser backend, designed to **EMU**late the dynamics of programmable arrays of neutral atoms, with matrix product states (**MPS**). It allows users to increase the number of qubits and reduce computation time.
|
|
22
|
-
|
|
23
|
-
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.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## Getting started
|
|
27
|
-
|
|
28
|
-
You can install from source, or download the package from the private pypi registry that pasqal maintains in gitlab.
|
|
29
|
-
For developers, we recommend installing from source, for users we recommend installing from the registry.
|
|
30
|
-
|
|
31
|
-
**Warning:** installing emu-mps will update pulser-core
|
|
32
|
-
|
|
33
|
-
We always recommend using a virtual environment.
|
|
34
|
-
|
|
35
|
-
<details>
|
|
36
|
-
<summary>Click me to see how it is done</summary>
|
|
37
|
-
|
|
38
|
-
#### Create a virtual environment using python
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
python -m venv .venv
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Or
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
python -m venv /path/to/new/virtual/environment
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
Replace `/path/to/new/virtual/environment` with your desired directory path.
|
|
51
|
-
|
|
52
|
-
Then activate the environment On linux or MacOS
|
|
53
|
-
|
|
54
|
-
```
|
|
55
|
-
source /path/to/new/virtual/environment/bin/activate
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
While on Windows it's
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
C:\> /path/to/new/virtual/environment/Scripts/activate
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Remember to replace `/path/to/new/virtual/environment` with the actual path to your virtual environment. Once the environment is activated, you can clone emu_mps and install it using
|
|
65
|
-
|
|
66
|
-
</details>
|
|
67
|
-
|
|
68
|
-
### installing from the registry
|
|
69
|
-
|
|
70
|
-
When pip is configured to know about the pasqal registry, Emu-MPS installs as
|
|
71
|
-
|
|
72
|
-
```bash
|
|
73
|
-
pip install emu-mps
|
|
74
|
-
```
|
|
75
|
-
When pip is not already configured, the easiest way to do so, is to add a file `~/.config/pip/pip.conf` containing:
|
|
76
|
-
|
|
77
|
-
```
|
|
78
|
-
[global]
|
|
79
|
-
extra-index-url=https://gitlab.pasqal.com/api/v4/projects/597/packages/pypi/simple
|
|
80
|
-
possible.other.urls
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
As this shows, it is also possible to have multiple extra repositories configured. Note that the order is not important.
|
|
84
|
-
|
|
85
|
-
It is also possible to add the `extra-index-url` to the `pip install` command directly, if you somehow don't want to create a `pip.conf` file.
|
|
86
|
-
|
|
87
|
-
### installing from source
|
|
88
|
-
git clone this [repository ](https://gitlab.pasqal.com/emulation/rydberg-atoms/emu-ct) or download
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Then, `cd` into the root folder of the repo and type
|
|
92
|
-
|
|
93
|
-
```bash
|
|
94
|
-
pip install -e .
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
<details>
|
|
98
|
-
<summary>Guidelines for developers </summary>
|
|
99
|
-
We recommend using an environment, git clone the repository, then inside the `emu_mps` folder
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
pip install -e .
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
Also, the installation of pytest, nbmake, pre-commit.
|
|
106
|
-
|
|
107
|
-
Do not forget to run the unit test suite by simply running `pytest` command.
|
|
108
|
-
|
|
109
|
-
Another way can be using hatch.
|
|
110
|
-
|
|
111
|
-
#### virtual environment with `hatch`
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
python -m pip install hatch
|
|
115
|
-
python -m hatch -v shell
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
When inside the shell with development dependencies, install first the pre-commit hook:
|
|
119
|
-
```
|
|
120
|
-
pre-commit install
|
|
121
|
-
```
|
|
122
|
-
</details>
|
|
123
|
-
|
|
124
|
-
## Check the tutorial notebooks and example scripts
|
|
125
|
-
|
|
126
|
-
For more information, you can check the tutorials and examples located in the [examples folder](https://gitlab.pasqal.com/emulation/rydberg-atoms/emu-ct/-/tree/main/examples?ref_type=heads)
|
|
127
|
-
|
|
128
|
-
## Documentation
|
|
129
|
-
|
|
130
|
-
Please check the [documentation](./docs/index.md) page for more info about contributing, the API, benchmarks, etc.
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-

|
emu_mps-1.2.3.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
emu_mps/__init__.py,sha256=a-Dn-9agKBvO6gx-32byo1uC_YTmKDT2os6LCpdB2Vs,646
|
|
2
|
-
emu_mps/algebra.py,sha256=fMkhie3iy-zEivE6G3EpJoo2o6Gde0rqrOwBUKOBkME,5384
|
|
3
|
-
emu_mps/hamiltonian.py,sha256=Ojb-T2bpb-Ym99IbFsTC2WqQ4C06IbcYK4VusA2pt_0,15799
|
|
4
|
-
emu_mps/mpo.py,sha256=RA9n50li1NJsIWCid-uOFgYV-usX4S7ZgmRdPLht8hs,8611
|
|
5
|
-
emu_mps/mps.py,sha256=3Oi_gT5KdY46Q3l9uGifWyrb77DUQOHxnu_O9ky7MYo,18338
|
|
6
|
-
emu_mps/mps_backend.py,sha256=ZCZMCsJz4-Oi0Ox2CqCOWqQWdE9ZJj6n_Jssd0g_1T0,972
|
|
7
|
-
emu_mps/mps_backend_impl.py,sha256=dEhBVciS7bdZ0AymbgDVyNUfprxuv-GgUoRcmKBkLHY,19512
|
|
8
|
-
emu_mps/mps_config.py,sha256=-ScHCNiiAwg_kMBSGOsXydjnbo_y3AqrvqpG3RzTYmU,2703
|
|
9
|
-
emu_mps/noise.py,sha256=h4X2EFjoC_Ok0gZ8I9wN77RANXaVehTBbjkcbY_GAmY,784
|
|
10
|
-
emu_mps/tdvp.py,sha256=mDStFKgbG3OXsEG-Ja8NJKsTGyLxsjNS6sQXK7B33EY,6088
|
|
11
|
-
emu_mps/utils.py,sha256=05s5TBE2zhsJwugbQFDCFQi7L0pVX0ukI-WIW2zN5TA,8052
|
|
12
|
-
emu_mps-1.2.3.dist-info/METADATA,sha256=mfI6Nq3zBJPLoFSCGFw4hI2v08xsf5pTdXzTt5zeKqE,4203
|
|
13
|
-
emu_mps-1.2.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
14
|
-
emu_mps-1.2.3.dist-info/RECORD,,
|
|
File without changes
|