Client library for pulse-level access to an IQM quantum computer
Project description
Pulla (pulse-level access) is a client-side software which allows the user to control the generation and execution of pulse schedules on a quantum computer. Within the existing IQM QCCSW stack, PulLA is somewhere between circuit-level execution and EXA-experiment.
An interactive user guide is available as a Jupyter notebook in the docs folder.
Use
Create a virtual environment and install dependencies:
conda create -y -n pulla python=3.11 pip=23.0
conda activate pulla
pip install iqm-pulla[notebook, qiskit, qir]
The [qiskit] option is to enable Qiskit-related features and utilities, like converting Qiskit circuits to Pulla circuits, constructing a compatible compiler instance, or constructing a PullaBackend for running Qiskit jobs.
The [qir] option is to enable QIR support, e.g. the qir_to_pulla function.
The [notebook] option is to be able to run the example notebooks, using and run it in Jupyter Notebook:
jupyter-notebook
Development
Install development and testing dependencies:
pip install -e ".[dev,notebook,qiskit,qir,testing,docs]"
e2e testing is execution of all user guides (Jupyter notebooks). User guides cover the majority of user-level features, so we achieve two things: end-to-end-test Pulla as a client library, and make sure the user guides are correct. (Server-side use of Pulla is e2e-tested as part of CoCoS.)
You have to provide CoCoS and Station Control URLs as environment variables:
COCOS_URL=<COCOS_URL> STATION_CONTROL_URL=<SC_URL> tox -e e2e
Notebooks are executed using jupyter execute command. It does not print any output if there are no errors. If you want to run a particular notebook and see the output cells printed in the terminal, you can use nbconvert with jq (https://jqlang.github.io/jq/download/) like so:
jupyter nbconvert --to notebook --execute docs/Quick\ Start.ipynb --stdout | jq -r '.cells[] | select(.outputs) | .outputs[] | select(.output_type == "stream") | .text[]'
Run unit tests, build docs, build package:
tox
tox -e docs
tox -e build
Copyright
Copyright 2025 IQM
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iqm_pulla-8.1.0.tar.gz.
File metadata
- Download URL: iqm_pulla-8.1.0.tar.gz
- Upload date:
- Size: 11.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64c569f61c5b2a29d3f5a62e3d60559c2d90402303a1b367d31d0cc94198e103
|
|
| MD5 |
b48ac140b77669c128677e8b75a7934d
|
|
| BLAKE2b-256 |
6c07f779f2c469c095c4303335e3242c923460f567cb2089164b6dd73c7d0e11
|
File details
Details for the file iqm_pulla-8.1.0-py3-none-any.whl.
File metadata
- Download URL: iqm_pulla-8.1.0-py3-none-any.whl
- Upload date:
- Size: 72.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34cedc18e96256a824c9286542eba29776931afeae7f711af712e4fd32786942
|
|
| MD5 |
1a5864201b22c651731ea26f387ac1f0
|
|
| BLAKE2b-256 |
ba2ca86f29bbfce8695d1eca8235143b5a86210e633a576ae95814897337a4c5
|