82 lines
5.2 KiB
Plaintext
82 lines
5.2 KiB
Plaintext
---
|
||
title: Online lab environments
|
||
description: Set up an online lab environment to use Qiskit in the cloud. Choose a preconfigured environment or set up your own.
|
||
|
||
---
|
||
<span id="online-environments"></span>
|
||
# Online lab environments
|
||
|
||
In addition to downloading and installing Qiskit to work on your local machine, there are several options available for those who prefer to work in an online development environment.
|
||
|
||
Several providers offer online Jupyter environments with Qiskit preinstalled for fast and convenient onboarding. These recommended providers include the cloud service provider OVHcloud and the quantum software development cloud platform qBraid.
|
||
|
||
Additional online Jupyter notebook environments like IBM Watson® Studio, Google Colab, and Microsoft Azure Machine Learning Studio can be used to work with Qiskit by following the instructions below.
|
||
|
||
## Recommended notebook environments with Qiskit preinstalled
|
||
|
||
### OVHcloud AI notebooks
|
||
|
||
OVHcloud Public Cloud and OVHcloud Startup users can use their OVHcloud quantum notebooks to access Qiskit and submit jobs to IBM® QPUs with their IBM Quantum™ or IBM Cloud® account. To learn more, visit the [OVHcloud Documentation and tutorials](https://help.ovhcloud.com/csm/world-documentation?id=kb_home) page.
|
||
|
||
<Admonition type="note">
|
||
OVHcloud AI notebooks are not available in some regions, such as the United States. Additionally, user interfaces might look different in different regions.
|
||
</Admonition>
|
||
|
||
Follow these steps to get started:
|
||
|
||
1. [Create an IBM Quantum or IBM Cloud account.](./setup-channel)
|
||
1. [Set up an OVHcloud account.](https://help.ovhcloud.com/csm/en-account-create-ovhcloud-account?id=kb_article_view&sysparm_article=KB0043022)
|
||
2. [Create an OVH Public Cloud project.](https://support.us.ovhcloud.com/hc/en-us/articles/360002245784-Creating-Your-First-Public-Cloud-Project)
|
||
6. Follow the steps in [Launch your first AI Notebook,](https://help.ovhcloud.com/csm/en-public-cloud-ai-notebooks-definition?id=kb_article_view&sysparm_article=KB0048270) selecting **Qiskit** for the framework.
|
||
|
||
### qBraid Lab
|
||
|
||
Qiskit users can use qBraid’s preconfigured Python environments by following these instructions. For more information, see the [qBraid Docs.](https://docs.qbraid.com/home/introduction)
|
||
|
||
1. [Set up an qBraid free account.](https://docs.qbraid.com/home/account)
|
||
3. [Create a Lab environment.](https://docs.qbraid.com/lab/user-guide/getting-started)
|
||
3. Launch qBraid Lab, click the **ENVS** icon on the right, click **+ ADD** at the top of the new sidebar, and search for Qiskit. Click the version you want to use, then click **Install**.
|
||
4. Create a Jupyter notebook by clicking **Python 3 [Qiskit]** in the Notebook section.
|
||
4. You can install any additional Python packages (Such as Qiskit v1.2) in a notebook cell by running `%pip install [package_name].` For more information, see the [Pip (magic) commands](https://docs.qbraid.com/lab/user-guide/notebooks#pip-magic-commands) topic.
|
||
|
||
## Additional notebook environments for Qiskit users
|
||
|
||
For platforms without Qiskit preconfigured, the setup instructions are similar, except that you must install Qiskit manually. You will create an account, start a new project (or notebook or workspace, depending on the platform), and install Qiskit.
|
||
|
||
### IBM Watson Studio
|
||
|
||
1. [Set up Watson Studio free trial.](https://cloud.ibm.com/docs/watson?topic=watson-about)
|
||
2. [Create a Watson Studio Project.](https://www.ibm.com/docs/en/db2-event-store/2.0.0?topic=data-projects#d275537e106)
|
||
3. To install the Qiskit packages and dependencies needed, open a new notebook and run the following command:
|
||
```python
|
||
!pip install qiskit qiskit-ibm-runtime pylatexenc !yes | pip uninstall simplejson
|
||
```
|
||
|
||
### Google Colab
|
||
|
||
1. [Create a Google account.](https://support.google.com/accounts/answer/27441?hl)
|
||
2. Go to the [Google Colab landing page](https://colab.research.google.com/) and sign in with your Google account.
|
||
3. [Create a Colab notebook](https://colab.research.google.com/#create=true) and install Qiskit by running the following command:
|
||
```python
|
||
%pip install qiskit qiskit-ibm-runtime
|
||
```
|
||
|
||
### Microsoft Azure Machine Learning Studio
|
||
|
||
1. [Create an Azure account.](https://learn.microsoft.com/en-us/dotnet/azure/create-azure-account)
|
||
2. [Create a workspace.](https://learn.microsoft.com/en-us/azure/machine-learning/concept-workspace?view=azureml-api-2#create-a-workspace)
|
||
3. [Create a Jupyter notebook in your workspace.](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-run-jupyter-notebooks?view=azureml-api-2)
|
||
4. From the notebook, run this command to install Qiskit:
|
||
```python
|
||
%pip install qiskit qiskit-ibm-runtime
|
||
```
|
||
|
||
## Helpful links
|
||
|
||
<Admonition type="tip" title="Documentation resources">
|
||
- [OVHcloud documentation](https://help.ovhcloud.com/csm/en-documentation?id=kb_home)
|
||
- [qBraid Lab documentation](https://docs.qbraid.com/home/introduction)
|
||
- [IBM Watson Studio documentation](https://dataplatform.cloud.ibm.com/docs/content/svc-welcome/wsl.html?context=cpdaas)
|
||
- [Google Colab documentation](https://colab.research.google.com/)
|
||
- [Microsoft Azure Machine Learning Studio documentation](https://learn.microsoft.com/en-us/azure/machine-learning/?view=azureml-api-2)
|
||
</Admonition> |