copyright | lastupdated | keywords | subcollection | content-type | completion-time | ||
---|---|---|---|---|---|---|---|
|
2022-09-13 |
quantum, Qiskit, runtime, near time compute, university, business, organization |
quantum-computing |
tutorial |
25m |
{{site.data.keyword.attribute-definition-list}}
{: #quickstart-steps-org} {: toc-content-type="tutorial"} {: toc-completion-time="25m"}
Follow these steps to start setting up Qiskit runtime. {: shortdesc}
{: #iam-org} {: step}
First, configure some settings in the administrator's Identity and Access Management (IAM) account. To review and configure these settings, go to Manage → IAM → Settings{: external}.
- User list visibility determines whether users can see each other, regardless of project assignment. The
enabled
setting restricts user visibility. That is, users in your account cannot see each other, even if they can access the same resources. Choose the appropriate value for your environment. See Controlling user visibility{: external} for more information. - API key creation controls whether users can create API keys. In Qiskit Runtime, it is common to use API keys. If API keys are being used, choose
disabled
. Alternatively, you can give specific permissions to each user.
{: #crt-rsc-grp-org} {: step}
Skip this step if you are using access groups that directly reference Qiskit Runtime service instances.
If you chose to use resource groups, go to Manage → Account → Resource groups (in Account resources){: external} and click Create.
{: #create-instance-org} {: step}
If you already created Qiskit Runtime service instances, skip this step.
- If you are using resource groups, make sure to create the service instances on the appropriate resource group.
- The service instance name, such as
QR-ml
, is needed for access group references.
- From the {{site.data.keyword.qiskit_runtime_notm}} Provisioning page{: external}, select the Create tab, then choose the appropriate service plan, depending on what you need access to:
- Lite: Free simulators-only plan to help you get started with {{site.data.keyword.qiskit_runtime_notm}}. Learn to use {{site.data.keyword.qiskit_runtime_notm}} by following our examples and tutorials for one of the pre-built programs available for running circuits efficiently.
- Standard: A pay-as-you-go model for accessing IBM QPUs and simulators. Build your own programs and use all the benefits of {{site.data.keyword.qiskit_runtime_notm}} by running on real quantum hardware, while maintaining access to all of the simulators available on the Lite plan.
- Complete the required information, then click Create.
{: #create-group-org} {: step}
First, we create a custom role that allows users to perform actions to work with Qiskit Runtime service instances for each access group. Next, we create an access group for each project and give that group the minimum set of permissions that are required to work with the project resources. In a later step, we map users to access groups.
Follow these steps to set up an access group:
-
Create a custom role.
-
From Manage → IAM → Roles{: external}, click
Create
. -
Enter a name, ID, description, and select
Qiskit Runtime
for the service. -
Select the following roles, then click Create.
- quantum-computing.device.read
- quantum-computing.job.cancel
- quantum-computing.job.create
- quantum-computing.job.read
- quantum-computing.program.create
- quantum-computing.program.delete
- quantum-computing.program.read
- quantum-computing.program.update
- quantum-computing.user.logout
- Select quantum-computing.job.delete if you want to allow users to delete jobs.
You can optionally define more fine grained roles by following these instructions. {: note}
-
-
Create an access group.
- Go to Manage → IAM → Access groups{: external} and click Create.
- Enter a name, like
project-ml
, and a description.
-
Assign access to the group.
- Select the Access tab and click Assign access.
- In the Service list, search for Qiskit Runtime and select it, then click Next.
- In Resources, select Specific resources. For Attribute type, choose Service Instance.
- From the drop-down list, select the service instance that you want to add to the access group, for example,
QR-ml
. If you are using resource groups, select the resource group instead of selecting individual service instances. Click Next. - For Roles and actions, select Viewer and the custom role that was created previously. Click Add, then Assign.
- Repeat this step if you want to give an access group permission to several service instances.
{: #setup-idp-org} {: step}
Follow the steps in the appropriate topic, depending on the ID provider you chose to use: