qat.generators.CombinatorialOptimizerGenerator

class qat.generators.CombinatorialOptimizerGenerator(job_type='qaoa')

Base class for generators that generate batch to solve combinatorial optimization problems

Parameters

job_type (str) – The job type of the batches to be generated. Can be either “qaoa”, “aqo”, “sqa”, or “ryd”

abstract generate(specs, *args, **kwargs)

Generates a batch. This function could return either an iterator or a Batch

post_process(result)

Post process the result of the sampling into more interpretable information

Parameters

result (BatchResult) – is returned from the computational stack to be post processed

Returns

A parsed result of combinatorial optimization problems that contains more interpretable informations

Return type

CombinatorialResult