fermioniq.client.Client.schedule_and_wait#

Client.schedule_and_wait(job: EmulatorJob, logger: Callable[[str], None] | None = None, cancel_on_interrupt: bool = True) JobResult#

Schedule a new job and wait for it to finish.

Parameters:
job

The EmulatorJob to be scheduled.

logger

An optional callback function for logging messages, set to python’s print for unprocessed messages.

cancel_on_interrupt

If True, the job will be cancelled on Keyboard interrupt signal.

Returns:
job_result

A JobResult object containing the results of the job.