load_qasm

pennylane_qiskit.load_qasm(qasm_string: str, measurements=None)[source]

Loads a PennyLane template from a QASM string.

Parameters:
  • qasm_string (str) – the name of the QASM string

  • measurements (None | pennylane.measurements.MeasurementProcess | list[pennylane.measurements.MeasurementProcess]) – the PennyLane measurements that override the terminal measurements that may be present in the input circuit

Returns:

the new PennyLane template

Return type:

function