qoqo_qasm.qasm_call_circuit

qoqo_qasm.qasm_call_circuit(circuit, qubit_register_name, qasm_version)

Translate the qoqo circuit into QASM ouput

The qoqo_qasm interface iterates through the qoqo circuit and translates each qoqo operation to QASM output (strings).

Parameters:
  • circuit (Circuit) – The qoqo circuit that is translated

  • qubit_register_name (str) – The name of the quantum register

Returns:

The translated circuit

Return type:

List[str]

Raises:
  • TypeError – Circuit conversion error

  • ValueError – Operation not in QASM backend