qiskit.providers.ibmq.random.IBMQRandomService
class IBMQRandomService(provider)
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.
__init__
__init__(provider)
IBMQRandomService constructor.
Parameters
provider (AccountProvider
) – IBM Quantum Experience account provider.
Methods
__init__ (provider) | IBMQRandomService constructor. |
get_service (name) | Return the random number service with the given name. |
services () | Return all random number services available to this account. |
get_service
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
services()
Return all random number services available to this account.
Return type
List
[BaseRandomService
]