From 8ecf6a0edd9745ec900236291abbcb86ee0332d8 Mon Sep 17 00:00:00 2001 From: Wei Hu Date: Tue, 30 Apr 2019 12:36:41 -0700 Subject: [PATCH] Fix import error in simple_benchmarks --- test/benchmark/simple_benchmarks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/benchmark/simple_benchmarks.py b/test/benchmark/simple_benchmarks.py index 19e5f983bc..472a124501 100644 --- a/test/benchmark/simple_benchmarks.py +++ b/test/benchmark/simple_benchmarks.py @@ -10,8 +10,8 @@ # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. -import qiskit as Terra from qiskit import QiskitError +from qiskit.compiler import assemble from qiskit.providers.aer import QasmSimulator from .tools import quantum_volume_circuit, mixed_unitary_noise_model, \ reset_noise_model, kraus_noise_model, no_noise, \ @@ -48,7 +48,7 @@ def __init__(self): self.circuits = [] for i in 5, 10, 15: circuit = simple_u3_circuit(i) - self.circuits.append(Terra.assemble(circuit, self.backend, shots=1)) + self.circuits.append(assemble(circuit, self.backend, shots=1)) self.param_names = [ "Simple u3 circuits", "Noise Model" @@ -83,7 +83,7 @@ def __init__(self): ] for i in 5, 10, 15: circuit = simple_cnot_circuit(i) - self.circuits.append(Terra.assemble(circuit, self.backend, shots=1)) + self.circuits.append(assemble(circuit, self.backend, shots=1)) self.params = (self.circuits, [ no_noise(), mixed_unitary_noise_model(),