Go to file
Iskandar Sitdikov e24c2a2543
Issue 593 | Client: deprecate stop in favor of cancel (#1494)
2024-09-19 16:06:12 -04:00
.github Add dependency parsing grammar for gateway allowlist (#1459) 2024-09-10 19:57:00 -04:00
charts update-version-0.16.3 (#1489) 2024-09-11 14:01:33 -04:00
client Issue 593 | Client: deprecate stop in favor of cancel (#1494) 2024-09-19 16:06:12 -04:00
docs update-version-0.16.3 (#1489) 2024-09-11 14:01:33 -04:00
gateway fix big file upload issue (#1497) 2024-09-19 10:59:16 -04:00
proxy bump zipp version in proxy (#1492) 2024-09-18 13:30:23 -04:00
tests Rename function.get_jobs to function.jobs and make it return Job objects (#1480) 2024-09-11 11:09:10 -04:00
.dockerignore don't add local gateway/media directory to container image (#1482) 2024-09-03 15:13:35 -04:00
.gitignore Update gitignore (#1486) 2024-09-10 13:51:41 -04: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-version-0.15.0 (#1446) 2024-08-07 12:03:16 -04:00
Dockerfile-ray-node Include function data folder in docker image (#1475) 2024-08-28 10:36:49 -04:00
LICENSE update license with proper dates (#877) 2023-08-10 09:15:28 -04:00
Makefile Cleanup some old configurations (#1435) 2024-08-02 15:24:27 -04:00
README.md Python 3.11 is only supported python version (#1420) 2024-07-31 12:19:29 -04: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.16.3 (#1489) 2024-09-11 14:01:33 -04:00
renovate.json Helm keycloak rollback (#1125) 2023-11-22 14:36:02 -05:00
tox.ini Fix tox configuration (#1413) 2024-07-16 17:51:12 -04: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 programs 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
  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 QiskitServerless infrastructure and run a simple example. For user convenience, this section assumes that users will deploy the infrastructure in a local environment using Docker and test examples within the deployed Jupyter notebook.

  1. Prepare local QiskitServerless infrastructure

    1. Install Docker If Docker is not installed on your system, follow the directions on the Docker website to install Docker on your system.

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

      pip install qiskit-serverless
      

      Optional: install Jupyter Lab

      pip install jupyterlab
      
    3. Clone the Qiskit Serverless repository

      git clone https://github.com/Qiskit/qiskit-serverless.git
      
    4. Run QiskitServerless 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, qs-jupyter, ray-head, scheduler
      
  2. Launch JupyterLab environment.

    cd docs/getting_started/ # the directory with sample notebooks
    jupyter lab
    

    This will open the Jupyter Lab environment in your web browser.

  3. Write your first example Qiskit Pattern. In the JupyterLab, create a new file, pattern.py, in the work directory. You can include any arbitrary Python code in your program, or you can use the example Python file in this tutorial.

  4. Run the program In the JupyterLab, create a new notebook in the same directory as your program, and execute the tutorial code.

    You can check the job status and get the result.

    job.status()
    # 'DONE'
    
    job.logs()
    # 2023-09-21 03:48:40,286\tINFO worker.py:1329 -- Using address 172.18.0.4:6379 set in the environment variable RAY_ADDRESS\n2023-09-21 03:48:40,286\tINFO worker.py:1458 -- Connecting to existing Ray cluster at address: 172.18.0.4:6379...\n2023-09-21 03:48:40,295\tINFO worker.py:1633 -- Connected to Ray cluster. View the dashboard at \x1b[1m\x1b[32m172.18.0.4:8265 \x1b[39m\x1b[22m\n
    
    job.status()
    # '{"quasi_dists": [{"1": 0.5071335183298108, "5": 0.4334908044837378, "7": 0.0593756771864515}, {"1": 0.9161860602334094, "5": 0.0838139397665906}, {"2": 0.4999999999999999, "3": 0.4999999999999999}]}'
    

    That's all!

For more detailed examples and explanations refer to the Guide:

  1. Getting Started
  2. Example Qiskit Patterns
  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