Shortcuts

qiskit.providers.ibmq.random.IBMQRandomService

class IBMQRandomService(provider, access_token)[소스]

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.

매개변수
  • provider (AccountProvider) – IBM Quantum Experience account provider.

  • access_token (str) – IBM Quantum Experience access token.

__init__(provider, access_token)[소스]

IBMQRandomService constructor.

매개변수
  • provider (AccountProvider) – IBM Quantum Experience account provider.

  • access_token (str) – IBM Quantum Experience access token.

Methods

__init__(provider, access_token)

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(name)[소스]

Return the random number service with the given name.

매개변수

name (str) – Name of the service.

반환 형식

BaseRandomService

반환값

Service with the given name.

예외

IBMQError – If the service cannot be found.

services()[소스]

Return all random number services available to this account.

반환 형식

List[BaseRandomService]

당신은 다음 언어로 문서를 보고 있다 lang: Korean
언어
English
Japanese
German
Korean