Skip to main content

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 IQM Server URL as environment variable:

IQM_SERVER_URL=<IQM_SERVER_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

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

iqm_pulla-12.0.4.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iqm_pulla-12.0.4-py3-none-any.whl (69.8 kB view details)

Uploaded Python 3

File details

Details for the file iqm_pulla-12.0.4.tar.gz.

File metadata

  • Download URL: iqm_pulla-12.0.4.tar.gz
  • Upload date:
  • Size: 11.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for iqm_pulla-12.0.4.tar.gz
Algorithm Hash digest
SHA256 704719e63caec5671b2e33e0c6e27b2545e4d4ee661c1b8eb4292f4da4aa8ca6
MD5 87c95327a6a9bfd88b995d5eaa39f833
BLAKE2b-256 00dad5b6ea43667660696c2bfba42bac86dd1fd8bf7a0c19ac4158591d81ea99

See more details on using hashes here.

File details

Details for the file iqm_pulla-12.0.4-py3-none-any.whl.

File metadata

  • Download URL: iqm_pulla-12.0.4-py3-none-any.whl
  • Upload date:
  • Size: 69.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for iqm_pulla-12.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b821e0cbe0b9c797ccda09de701fdcbc53c956e578df952b0057e405a0145dd3
MD5 6ae0775b600ec1dc2a0316de35161a60
BLAKE2b-256 2c2652eaf1d153d93aa87f2d872efe10f7353f5cda38a444ed3450bb9b3da94e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page