You're reading the documentation of the v1.0. For the latest released version, please have a look at v1.3.

MyQlMConverter

class perceval_interop.myqlm.myqlm_converter.MyQLMConverter

myQLM quantum circuit to perceval circuit converter.

convert(gate_circuit, use_postselection=True)

Convert a gate-based quantum circuit into an Experiment.

Parameters:
  • gate_circuit – gate-based quantum circuit (Qiskit, Myqlm or CQASM)

  • use_postselection (bool) – when True (default), uses optimized number of postprocessed CNOT and Heralded CNOT gates. Otherwise, uses only heralded CNOT.

Return type:

Experiment

Returns:

the converted experiment