Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

qiskit.providers.ibmq.credentials.Credentials

class Credentials(token, url, websockets_url=None, hub=None, group=None, project=None, proxies=None, verify=True, services=None, access_token=None)

GitHub

IBM Quantum Experience account credentials.

Note

By convention, two credentials that have the same hub, group, and project are considered equivalent, regardless of other attributes.

Credentials constructor.

Parameters

  • token (str) – IBM Quantum Experience API token.
  • url (str) – IBM Quantum Experience URL.
  • websockets_url (Optional[str]) – URL for websocket server.
  • hub (Optional[str]) – The hub to use.
  • group (Optional[str]) – The group to use.
  • project (Optional[str]) – The project to use.
  • proxies (Optional[Dict]) – Proxy configuration.
  • verify (bool) – If False, ignores SSL certificates errors.
  • services (Optional[Dict]) – Additional services for this account.
  • access_token (Optional[str]) – IBM Quantum access token.

__init__

__init__(token, url, websockets_url=None, hub=None, group=None, project=None, proxies=None, verify=True, services=None, access_token=None)

Credentials constructor.

Parameters

  • token (str) – IBM Quantum Experience API token.
  • url (str) – IBM Quantum Experience URL.
  • websockets_url (Optional[str]) – URL for websocket server.
  • hub (Optional[str]) – The hub to use.
  • group (Optional[str]) – The group to use.
  • project (Optional[str]) – The project to use.
  • proxies (Optional[Dict]) – Proxy configuration.
  • verify (bool) – If False, ignores SSL certificates errors.
  • services (Optional[Dict]) – Additional services for this account.
  • access_token (Optional[str]) – IBM Quantum access token.

Methods

__init__(token, url[, websockets_url, hub, …])Credentials constructor.
connection_parameters()Construct connection related parameters.
is_ibmq()Return whether the credentials represent an IBM Quantum Experience account.
unique_id()Return a value that uniquely identifies these credentials.

connection_parameters

connection_parameters()

Construct connection related parameters.

Return type

Dict[str, Any]

Returns

A dictionary with connection-related parameters in the format expected by requests. The following keys can be present: proxies, verify, and auth.

is_ibmq

is_ibmq()

Return whether the credentials represent an IBM Quantum Experience account.

Return type

bool

unique_id

unique_id()

Return a value that uniquely identifies these credentials.

By convention, two credentials that have the same hub, group, and project are considered equivalent.

Return type

HubGroupProject

Returns

A HubGroupProject instance.

Was this page helpful?
Report a bug or request content on GitHub.