Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import error in simple_benchmarks #194

Merged
merged 2 commits into from
Apr 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/benchmark/simple_benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, \
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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(),
Expand Down