Skip to content
9 changes: 7 additions & 2 deletions docs/guides/access-groups.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ When you create this access group, include the following policies:
<Admonition type="note">
Users with the `viewer` platform management role on "all account management services" can also view services such as billing. If you want to prevent this extra view access, use the IBM Cloud CLI to give them access to just Resource groups:
```cli
ibmcloud iam access-group-policy-create <group name> --roles Viewer --resource-type resource-group
ibmcloud iam access-group-policy-create (<group name> --roles Viewer
--resource-type resource-group)
```
</Admonition>

Expand All @@ -57,7 +58,11 @@ ibmcloud iam access-group-create GROUP_NAME [-d, --description DESCRIPTION]
To create an access group _policy_ by using the CLI, use the [`ibmcloud iam access-group-policy-create`](https://cloud.ibm.com/docs/cli?topic=cli-ibmcloud_commands_iam#ibmcloud_iam_access_group_policy_create) command.

```cli
ibmcloud iam access-group-policy-create GROUP_NAME {-f, --file @JSON_FILE | --roles ROLE_NAME1,ROLE_NAME2... [--service-name SERVICE_NAME] [--service-instance SERVICE_INSTANCE] [--region REGION] [--resource-type RESOURCE_TYPE] [--resource RESOURCE] [--resource-group-name RESOURCE_GROUP_NAME] [--resource-group-id RESOURCE_GROUP_ID]}
ibmcloud iam access-group-policy-create GROUP_NAME {-f, --file @JSON_FILE | --roles ROLE_NAME1,ROLE_NAME2...
[--service-name SERVICE_NAME] [--service-instance SERVICE_INSTANCE] [--region REGION]
[--resource-type RESOURCE_TYPE] [--resource RESOURCE] [--resource-group-name RESOURCE_GROUP_NAME]
[--resource-group-id RESOURCE_GROUP_ID]
}
```

You can use the following JSON code to create policies for an Administrators access group:
Expand Down
4 changes: 3 additions & 1 deletion docs/guides/cloud-setup-rest-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Choose the appropriate authentication method, depending on your working environm
1. To set the IQP_API_TOKEN environment variable in your system, you can add the following line to your shell profile (for example, .bashrc or .zshrc) or by setting it directly in your terminal:

```shell
export IQP_API_TOKEN=<your-API_KEY> # Use the 44-character API_KEY you created and saved from the IBM Quantum Platform Home dashboard
export IQP_API_TOKEN=<your-API_KEY>
# Use the 44-character API_KEY you created and saved
# from the IBM Quantum Platform Home dashboard
```
When you invoke the environment variable in your code, include `import os`, as in this example:

Expand Down
6 changes: 4 additions & 2 deletions docs/guides/debug-qiskit-runtime-jobs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "a45a6d9e-de39-4586-8395-a7f580f0e0dc",
"metadata": {},
"outputs": [],
Expand All @@ -114,7 +114,9 @@
"backend = service.least_busy(operational=True, simulator=False)\n",
"\n",
"# Generate a preset pass manager\n",
"# This will be used to convert the abstract circuit to an equivalent Instruction Set Architecture (ISA) circuit.\n",
"# This will be used to convert the abstract circuit to an equivalent\n",
"# Instruction Set Architecture (ISA) circuit.\n",
"\n",
"pm = generate_preset_pass_manager(backend=backend, optimization_level=0)\n",
"\n",
"# Set the random seed\n",
Expand Down
16 changes: 10 additions & 6 deletions docs/guides/estimator-input-output.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "defbebd5-f09f-4596-aff0-ae88cbf2555c",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -252,19 +252,23 @@
],
"source": [
"print(\n",
" f\"The result of the submitted job had {len(result)} PUB and has a value:\\n {result}\\n\"\n",
" f\"The result of the submitted job had {len(result)} PUB and has a value:\\n \"\n",
" \"{result}\\n\"\n",
")\n",
"print(\n",
" f\"The associated PubResult of this job has the following data bins:\\n {result[0].data}\\n\"\n",
" f\"The associated PubResult of this job has the following data bins:\\n \"\n",
" \"{result[0].data}\\n\"\n",
")\n",
"print(f\"And this DataBin has attributes: {result[0].data.keys()}\")\n",
"print(\n",
" \"Recall that this shape is due to our array of parameter binding sets having shape (100, 2) -- where 2 is the\\n\\\n",
" number of parameters in the circuit -- combined with our array of observables having shape (3, 1). \\n\"\n",
" \"Recall that this shape is due to our array of parameter binding sets\"\n",
" \"having shape (100, 2), where 2 is the number of parameters in the \"\n",
" \"circuit, combined with our array of observables having shape (3, 1). \\n\"\n",
")\n",
"with np.printoptions(threshold=200):\n",
" print(\n",
" f\"The expectation values measured from this PUB are: \\n{result[0].data.evs}\"\n",
" f\"The expectation values measured from this PUB are: \\n\"\n",
" \"{result[0].data.evs}\\n\"\n",
" )"
]
},
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/function-template-chemistry-workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,8 @@
},
"outputs": [],
"source": [
"# This cell is hidden from users. It verifies both source listings are identical then deletes the working folder we created\n",
"# This cell is hidden from users. It verifies both source listings are identical\n",
"# then deletes the working folder we created\n",
"import shutil\n",
"\n",
"with open(\"./source_files/sqd_pcm_entrypoint.py\") as f1:\n",
Expand Down
9 changes: 6 additions & 3 deletions docs/guides/function-template-hamiltonian-simulation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@
"\n",
"# Extract parameters from arguments\n",
"#\n",
"# Do this at the top of the program so it fails early if any required arguments are missing or invalid.\n",
"# Do this at the top of the program so it fails early if any required arguments are missing or\n",
"# invalid.\n",
"\n",
"arguments = get_arguments()\n",
"\n",
Expand Down Expand Up @@ -1146,7 +1147,8 @@
"\n",
"# Extract parameters from arguments\n",
"#\n",
"# Do this at the top of the program so it fails early if any required arguments are missing or invalid.\n",
"# Do this at the top of the program so it fails early if any required arguments\n",
"# are missing or invalid.\n",
"\n",
"arguments = get_arguments()\n",
"\n",
Expand Down Expand Up @@ -1406,7 +1408,8 @@
},
"outputs": [],
"source": [
"# This cell is hidden from users. It verifies both source listings are identical then deletes the working folder we created\n",
"# This cell is hidden from users. It verifies both source listings are identical then deletes the\n",
"# working folder we created\n",
"import shutil\n",
"\n",
"with open(\"./source_files/template_hamiltonian_simulation.py\") as f1:\n",
Expand Down
9 changes: 5 additions & 4 deletions docs/guides/ibm-circuit-function.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,18 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "d56e1440",
"metadata": {},
"outputs": [],
"source": [
"from qiskit.circuit.random import random_circuit\n",
"from qiskit_ibm_runtime import QiskitRuntimeService\n",
"\n",
"# You can skip this step if you have a target backend, e.g.\n",
"# backend_name = \"ibm_brisbane\"\n",
"# You'll need to specify the credentials when initializing QiskitRuntimeService, if they were not previously saved.\n",
"# You can skip this step if you have a target backend,\n",
"# e.g. backend_name = \"ibm_brisbane\"\n",
"# You'll need to specify the credentials when initializing QiskitRuntimeService,\n",
"# if they were not previously saved.\n",
"service = QiskitRuntimeService()\n",
"backend = service.least_busy(operational=True, simulator=False)\n",
"\n",
Expand Down
5 changes: 3 additions & 2 deletions docs/guides/sampler-options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "e06376f4-fcba-4d03-8cbc-c53ca02d81af",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -193,7 +193,8 @@
"# This uses auto-complete.\n",
"sampler.options.default_shots = 2000\n",
"\n",
"# This does bulk update. The value for default_shots is overridden if you specify shots with run() or in the PUB.\n",
"# This does bulk update. The value for default_shots is overridden\n",
"# if you specify shots with run() or in the PUB.\n",
"sampler.options.update(\n",
" default_shots=1024, dynamical_decoupling={\"sequence_type\": \"XpXm\"}\n",
")\n",
Expand Down
Loading
Loading