quantum_launcher.launcher.aql#

Summary#

Classes:

AQL

AQLManager

Context manager for asyncQuantumLauncher Simplified high-level context manager to support asynchronous flow of asyncQuantumLauncher.

asyncQuantumLauncher

Reference#

class quantum_launcher.launcher.aql.asyncQuantumLauncher(problem: Problem, algorithm: Algorithm, backend: Backend = None, logger: Logger | None = None)[source]#

Bases: QuantumLauncher

start(times: int = 1, real_backend: Backend = None, debugging=False) None[source]#
async run_async_task(pool: BaseEventLoop)[source]#
async run_async_fake_task(pool: BaseEventLoop)[source]#
async run_async(times: int)[source]#
class quantum_launcher.launcher.aql.AQL(backends: List[Tuple[Backend, int]], algorithms: List[Tuple[Algorithm, int]], problems: List[Tuple[Problem, int]], debugging: bool = False)[source]#

Bases: object

start() List[any][source]#
async run_async_task(pool: BaseEventLoop, backend: Backend, algorithm: Algorithm, problem: Problem)[source]#
async run_async()[source]#
class quantum_launcher.launcher.aql.AQLManager(path: str = None)[source]#

Bases: object

Context manager for asyncQuantumLauncher Simplified high-level context manager to support asynchronous flow of asyncQuantumLauncher.

Inside is only initialization and whole processing is done at the end.

To save the results it’s recommended to assign manager’s variables to local ones, so they don’t get destroyed.

Usage Example#

with AQLManager('my_path') as launcher:
    launcher.add()
    launcher.add()
    launcher.add()
    result = aql.result
print(result)
add_backend(backend: Backend, times: int = 1)[source]#
add_algorithm(algorithm, times: int = 1)[source]#
add_problem(problem, times: int = 1)[source]#
add(backend: Backend = None, algorithm: Algorithm = None, problem: Problem = None, times: int = 1)[source]#