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.

IBMQRandomService

class IBMQRandomService(provider)

GitHub

Bases: object

Random number services for an IBM Quantum Experience account provider.

Represent a namespace for random number services available to this provider. An instance of this class is used as an attribute to the AccountProvider class. This allows a convenient way to query for all services or to access a specific one:

random_services = provider.random.services()
extractor = provider.random.get_extractor('cqc_extractor')
extractor = provider.random.cqc_extractor  # Short hand for above.

IBMQRandomService constructor.

Parameters

provider (AccountProvider) – IBM Quantum Experience account provider.


Methods

get_service

IBMQRandomService.get_service(name)

Return the random number service with the given name.

Parameters

name (str) – Name of the service.

Return type

BaseRandomService

Returns

Service with the given name.

Raises

IBMQError – If the service cannot be found.

services

IBMQRandomService.services()

Return all random number services available to this account.

Return type

List[BaseRandomService]

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