Create a new IBMConfig.
Optionalconfig: IBMConfigDataOptional initial configuration. If omitted, a deep copy of DEFAULT_IBM_CONFIG is used.
Get the IBM API key (stored as 'token').
The API key string.
Get the in-memory bearer token (not persisted).
The bearer token string.
Get a shallow copy of the current configuration object. Note: nested section objects are not deeply cloned.
A shallow copy of the current configuration.
Get a configuration section by name.
The section key.
The section object if present, otherwise undefined.
Get the IBM Quantum service CRN (stored as 'instance').
The service CRN string.
Get a value from a given section.
The section key.
The key within the section.
The value if present, otherwise undefined.
Bearer token expiry check. Returns true if token was never set or lifetime exceeded.
Set the IBM API key (stored as 'token').
The API key.
Set the in-memory bearer token (not persisted).
The bearer token value.
Set the IBM Quantum service CRN (stored as 'instance').
The service CRN value.
Set a value within a section, creating the section if needed.
The section key.
The key within the section.
The value to set.
Shallow-merge top-level sections from the provided config into the current config.
The partial configuration to merge at the section level.
Lightweight, browser-safe IBM Quantum Platform config wrapper.