Appearance
Service Configuration
Runtime Configuration
After you have created a new service, you can change the runtime configuration on the service detail page. From the toolbar on the top, select "Edit Service" and then "Runtime Configuration".
You can change the runtime, to be either "Python Template" or "Docker". You find more information on the Runtime Interface page.
Additionally, you can choose to add your configured provider access tokens to the runtime as environment variables. If you enable this option, the following environment variables are set depending on the backend provider:
- IBM Quantum:
QISKIT_IBM_TOKEN
(API key value) - IBM Cloud:
QISKIT_IBM_TOKEN
(API key value),QISKIT_IBM_INSTANCE
(Service CRN value),QISKIT_IBM_CHANNEL
(constant value: ibm_cloud) - D-Wave Leap:
DWAVE_API_TOKEN
(API key value) The Qiskit and D-Wave Ocean SDK may required further instrumentation to use these variables.
Further, you can add additional environment variables to store other API keys, configuration values, or secrets. You can access them in your code like regular environment variables, for example with os.getenv()
in Python.
Resource Configuration
After you have created a new service, you can change the resource configuration on the service detail page.