Go to file
David 407eb27765
Update internal images in helm (#1584)
* Update internal images in helm

* updated images for template
2025-02-18 11:43:45 -05:00
.github Remove scorecard action (#1579) 2025-02-04 11:58:54 -05:00
charts Update internal images in helm (#1584) 2025-02-18 11:43:45 -05:00
client update-version-0.19.0 (#1580) 2025-02-04 12:20:41 -05:00
docs update-version-0.19.0 (#1580) 2025-02-04 12:20:41 -05:00
gateway Update cryptography version (#1585) 2025-02-18 11:42:40 -05:00
tests Improve data directory functionality (#1509) 2025-01-13 13:33:41 -05:00
.dockerignore don't add local gateway/media directory to container image (#1482) 2024-09-03 15:13:35 -04:00
.gitignore Refactor: integration tests (#1543) 2024-12-10 10:42:41 -05:00
CITATION.cff migrate links from qiskit-extensions to qiskit (#1362) 2024-06-10 16:57:04 -04:00
CODE_OF_CONDUCT.md Docs: code of conduct (#44) 2022-10-31 14:47:09 -04:00
CONTRIBUTING.md Update CONTRIBUTING.md (#1520) 2024-10-17 10:44:19 +02:00
Dockerfile-ray-node Update base images (#1581) 2025-02-10 09:02:48 -05:00
LICENSE update license with proper dates (#877) 2023-08-10 09:15:28 -04:00
Makefile Remove proxy project (#1573) 2025-01-28 14:03:08 -05:00
README.md K8s local deployment and documentation updated (#1548) 2024-12-13 08:10:40 -05:00
SECURITY.md migrate links from qiskit-extensions to qiskit (#1362) 2024-06-10 16:57:04 -04:00
ct.yaml Sunset keycloak from the project (#1134) 2023-12-07 10:15:27 -05:00
docker-compose-dev.yaml Fix docker compose failures (#1439) 2024-08-05 17:26:24 -04:00
docker-compose.yaml update-version-0.19.0 (#1580) 2025-02-04 12:20:41 -05:00
renovate.json Helm keycloak rollback (#1125) 2023-11-22 14:36:02 -05:00
tox.ini K8s local deployment and documentation updated (#1548) 2024-12-13 08:10:40 -05:00

README.md

Stability License Code style: Black Python Qiskit

Qiskit Serverless

Qiskit Serverless is a user-friendly tool that enables you to easily run complex quantum computing tasks. With this software, you can execute Qiskit Functions as long running jobs and distribute them across multiple CPUs, GPUs, and QPUs. This means you can take on more complex quantum-classical programs and run them with ease. You don't have to worry about configuration or scaling up computational resources, as Qiskit Serverless takes care of everything for you.

diagram

Table of Contents

  1. Quickstart
    1. Using Docker
    2. Using Kubernetes
  2. Modules
    1. Client
    2. Gateway
    3. Charts
  3. How to Give Feedback
  4. Contribution Guidelines
  5. Deprecation Policy
  6. References and Acknowledgements
  7. License

Quickstart

This Quickstart section guides users to easily deploy Qiskit Serverless infrastructure and run a simple example.

Docker

For user convenience, this section assumes that users will deploy the infrastructure in a local environment using Docker following the next steps.

  1. Prepare local Qiskit Serverless infrastructure

    1. Install Docker You can use any runtime that you prefer to run Docker on your machine: Docker Desktop, podman... If you are using a MacOS with ARM processors we highly recommend to use Colima as your container runtime to avoid problems with that architecture.

      This is a project that takes advantage of distributed computing, so it places a high demand on resources. We recommend increasing the assigned resources to these runtimes. In case of Colima for example we typically use:

      colima start --cpu 4 --memory 8 --disk 100
      
    2. Install qiskit-serverless on your local system (we recommend using a virtual environment).

      pip install qiskit-serverless
      
    3. Clone the Qiskit Serverless repository

      git clone https://github.com/Qiskit/qiskit-serverless.git
      
    4. Run Qiskit Serverless infrastructure Execute Docker Compose using the following commands.

      cd qiskit-serverless/
      sudo docker compose up
      

      The output should resemble the following.

      ~/qiskit-serverless$ sudo docker compose --profile jupyter up
      [+] Running 5/0
       ✔ Network public-qiskit-serverless_safe-tier     Created                                           0.0s
       ✔ Container ray-head                              Created                                           0.0s
       ✔ Container public-qiskit-serverless-postgres-1  Created                                           0.0s
       ✔ Container gateway                               Created                                           0.0s
       ✔ Container scheduler                             Created                                           0.0s
      Attaching to gateway, public-qiskit-serverless-postgres-1, ray-head, scheduler
      
  2. Write your first Qiskit Function following our hello-world example in the tutorial section.

    That's all!

Kubernetes

For user convenience, this section assumes that users will deploy the infrastructure in a local environment using Kind following the next steps.

  1. Prepare local Qiskit Serverless infrastructure

    1. Install Docker You can use any runtime that you prefer to run Docker on your machine: Docker Desktop, podman... If you are using a MacOS with ARM processors we highly recommend to use Colima as your container runtime to avoid problems with that architecture.

      This is a project that takes advantage of distributed computing, so it places a high demand on resources. We recommend increasing the assigned resources to these runtimes. In case of Colima for example we typically use:

      colima start --cpu 4 --memory 8 --disk 100
      
    2. Install Kind To simplify the process to deploy a k8s cluster locally we use Kind as the main tool to create a cluster.

    3. Install qiskit-serverless on your local system (we recommend using a virtual environment).

      pip install qiskit-serverless
      
    4. Clone the Qiskit Serverless repository

      git clone https://github.com/Qiskit/qiskit-serverless.git
      
    5. Run Qiskit Serverless infrastructure Execute the script to setup the cluster

      tox -e cluster-deploy
      

      The creation process can take some minutes.

  2. Write your first Qiskit Function following our hello-world example in the tutorial section.

    That's all!

For more detailed examples and explanations refer to the Guide:

  1. Getting Started
  2. Example Qiskit Functions
  3. Infrastructure
  4. Migrating from Qiskit Runtime programs

How to Give Feedback

We encourage your feedback! You can share your thoughts with us by:

  • Opening an issue in the repository

Contribution Guidelines

For information on how to contribute to this project, please take a look at our contribution guidelines.


Deprecation Policy

This project is meant to evolve rapidly and, as such, do not follow Qiskit's deprecation policy. We may occasionally make breaking changes in order to improve the user experience. When possible, we will keep old interfaces and mark them as deprecated, as long as they can co-exist with the new ones. Each substantial improvement, breaking change, or deprecation will be documented in release notes.


References and Acknowledgements

[1] Qiskit
https://github.com/Qiskit/qiskit

[2] Client for IBM Qiskit Runtime
https://github.com/Qiskit/qiskit-ibm-runtime


License

Apache License 2.0