Device Interface

graphix.device_interface module

class graphix.device_interface.PatternRunner(pattern, backend='ibmq', **kwargs)[source]

MBQC pattern runner

Executes the measurement pattern.

__init__(pattern, backend='ibmq', **kwargs)[source]
Parameters
  • pattern (graphix.pattern.Pattern object) – MBQC pattern to be executed.

  • backend_name (str, optional) – execution backend, default is ‘ibmq’.

  • kwargs (dict) – keyword args for specified backend.

run(**kwargs)[source]

Perform the execution.

Parameters

kwargs (dict) – keyword args for specified backend.

Returns

the measurement result, in the representation depending on the backend used.

Return type

result

retrieve_result(**kwargs)[source]

Retrieve the execution result.

Parameters

kwargs (dict) – keyword args for specified backend.

Returns

the measurement result, in the representation depending on the backend used.

Return type

result