diff --git a/qiskit/transpiler/synthesis/aqc/aqc_plugin.py b/qiskit/transpiler/synthesis/aqc/aqc_plugin.py index 0fa153566557..ad8d617e42ae 100644 --- a/qiskit/transpiler/synthesis/aqc/aqc_plugin.py +++ b/qiskit/transpiler/synthesis/aqc/aqc_plugin.py @@ -109,7 +109,7 @@ def run(self, unitary, **options): from qiskit.transpiler.synthesis.aqc.aqc import AQC from qiskit.transpiler.synthesis.aqc.cnot_structures import make_cnot_network from qiskit.transpiler.synthesis.aqc.cnot_unit_circuit import CNOTUnitCircuit - from qiskit.transpiler.synthesis.aqc.cnot_unit_objective import DefaultCNOTUnitObjective + from qiskit.transpiler.synthesis.aqc.fast_gradient.fast_gradient import FastCNOTUnitObjective num_qubits = int(round(np.log2(unitary.shape[0]))) @@ -132,7 +132,7 @@ def run(self, unitary, **options): aqc = AQC(optimizer, seed) approximate_circuit = CNOTUnitCircuit(num_qubits=num_qubits, cnots=cnots) - approximating_objective = DefaultCNOTUnitObjective(num_qubits=num_qubits, cnots=cnots) + approximating_objective = FastCNOTUnitObjective(num_qubits=num_qubits, cnots=cnots) initial_point = config.get("initial_point") aqc.compile_unitary(