Skip to content

Commit

Permalink
Fix actual backend in benchmark examples
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Apr 1, 2021
1 parent 355f89d commit 429f2fd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/benchmarks/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,8 @@ def main(nqubits_list: List[int],
circuit = circuit.fuse()
logs["creation_time"].append(time.time() - start_time)

try:
actual_backend = circuit.queue[0].einsum.__class__.__name__
except AttributeError:
actual_backend = "Custom"

print("\nBenchmark parameters:", kwargs)
print("Actual backend:", actual_backend)
print("Actual backend:", qibo.get_backend())
with tf.device(device):
if compile:
start_time = time.time()
Expand Down

0 comments on commit 429f2fd

Please sign in to comment.