Skip to content

Commit

Permalink
change back to QuantumCircuit.from_qasm_str
Browse files Browse the repository at this point in the history
  • Loading branch information
lillian542 committed Aug 28, 2024
1 parent a295ece commit 3b664da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pennylane_qiskit/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import numpy as np
from qiskit import QuantumCircuit, ClassicalRegister, QuantumRegister
from qiskit.converters import circuit_to_dag, dag_to_circuit
import qiskit.qasm2
from qiskit.circuit import Parameter, ParameterExpression, ParameterVector
from qiskit.circuit import Measure, Barrier, ControlFlowOp, Clbit
from qiskit.circuit import library as lib
Expand Down Expand Up @@ -646,7 +645,7 @@ def load_qasm(qasm_string: str, measurements=None):
Returns:
function: the new PennyLane template
"""
return load(qiskit.qasm2.loads(qasm_string), measurements=measurements)
return load(QuantumCircuit.from_qasm_str(qasm_string), measurements=measurements)


def load_qasm_from_file(file: str):
Expand Down

0 comments on commit 3b664da

Please sign in to comment.