Metadata-Version: 2.5
Name: ionpulse_sequence_generator
Version: 2.8.0
Author-email: Martin Stadler <mstadle@phys.ethz.ch>, Alexander Ferk <alferk@phys.ethz.ch>, Mose Mueller <mosmuell@ethz.ch>, Carmelo Mordini <carmelo@zuriq.com>, Chidzahi Mabritto <chidzahi.mabritto@qendra.tech>
License-Expression: LicenseRef-Proprietary
License-File: AUTHORS.md
License-File: LICENSE
Requires-Python: <4,>=3.10
Requires-Dist: click<9,>=8.2.1
Requires-Dist: msgpack<2,>=1.0.5
Requires-Dist: numpy<3,>=2.2
Requires-Dist: orjson<4,>=3.10
Requires-Dist: scipy<2,>=1.15
Description-Content-Type: text/markdown

# Ionpulse Sequence Generator
This package provides a convenient API to create pulse sequences for the ionpulse application running on M-ACTION or QUENCH. It generates a dictionary which can be translated into JSON and sent to ionpulse as a string, generating a sequence of operations.

The sequence generator is meant to be used as a dependency of [pycrystal](https://gitlab.phys.ethz.ch/tiqi-projects/pycrystal), but can be used standalone.

To connect to to Ionpulse, you can use e.g. [tiqi-zedboard](https://gitlab.phys.ethz.ch/tiqi-projects/drivers/tiqi-zedboard) for this.

## Contributing
Contributions to the sequence generator are always welcome!

To contribute, please create a virtual environment to run the tests and formatting from:
```
uv sync
```
Then install the pre-commit hook for formatting your code using Ruff:
```
uv run pre-commit install
```
For VSCode you can also install the Ruff formatting extension.

As this package integrates with [pycrystal](https://gitlab.phys.ethz.ch/tiqi-projects/pycrystal), [ionpulse](https://gitlab.phys.ethz.ch/tiqi-projects/ionpulse_sdk_core) and the [ionpulse-sequence-visualizer](https://gitlab.phys.ethz.ch/tiqi-projects/library-visualiser), integration testing with these projects is important before contributions can be merged.

Integration tests with [ionpulse-sequence-visualizer](https://gitlab.phys.ethz.ch/tiqi-projects/library-visualiser) are currently performed automatically with a cross project pipeline.

For [pycrystal](https://gitlab.phys.ethz.ch/tiqi-projects/pycrystal) and [ionpulse](https://gitlab.phys.ethz.ch/tiqi-projects/ionpulse_sdk_core) integration tests have to be performed manually.


## Installation
The package is published on PyPI as a precompiled wheel. Add it to your project with `uv`:
```sh
uv add ionpulse-sequence-generator==2.8.0
```

or install it with `pip`:
```sh
pip install ionpulse-sequence-generator==2.8.0
```

### Editable installation for development
To work on the sequence generator from a project that uses it, clone the repository next to
your project and install it in editable mode from that checkout:
```sh
git clone git@gitlab.com:qendra/ionpulse-python-sdk/ionpulse_sequence_generator.git
cd my-project
uv add --editable ../ionpulse_sequence_generator
```

With `pip`, use `pip install -e ../ionpulse_sequence_generator` instead.

An editable install uses the Python sources directly and skips the Nuitka compilation, so
changes in the checkout take effect without reinstalling.

`uv add --editable` records the local path in your project's `pyproject.toml` (under
`[tool.uv.sources]`). Don't commit that. To go back to the published package, remove it first
(re-adding alone keeps the local path):
```sh
uv remove ionpulse-sequence-generator
uv add ionpulse-sequence-generator==2.8.0
```

