load

pennylane_qiskit.load(quantum_circuit: QuantumCircuit, measurements=None)[source]

Loads a PennyLane template from a Qiskit QuantumCircuit. Warnings are created for each of the QuantumCircuit instructions that were not incorporated in the PennyLane template.

Parameters:
  • quantum_circuit (qiskit.QuantumCircuit) – the QuantumCircuit to be converted

  • 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 resulting PennyLane template.

Return type:

function

Contents