qat.interop.projectq.AqasmEngine

class qat.interop.projectq.AqasmEngine(*args: Any, **kwargs: Any)

A compiler engine which can print and export commands in AQASM format.

projectq_to_qlm(sep_measure=False, **kwargs)

Generates the QLM circuit corresponding to all projectq commands we sent to the engine

Parameters
  • sep_measures

    Separates measures from the circuit:

    • if set to True measures won’t be included in the resulting circuits, qubits to be measured will be put in a list, the resulting measureless circuit and this list will be returned in a tuple : (resulting_circuit, list_qubits)

    • if set to False, measures will be converted normally (Default set to False)

  • kwargs – these are the options that you would use on a regular to_circ function, these are added for more flexibility, for advanced users

Returns

If sep_measures is set to:

  • True: the result is a tuple composed of a Circuit and a list of qubits that should be measured

  • False: the result is a Circuit

Return type

tuple or Circuit