Skip to content

Commit

Permalink
Merge pull request #535 from qiboteam/fixplatform
Browse files Browse the repository at this point in the history
Fix engine not renamed to platform in some tests
  • Loading branch information
mlazzarin committed Jan 19, 2022
2 parents f7022cb + 1505bea commit 93434df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/benchmarks/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main(nqubits, circuit_name, backend="custom", precision="double",
freqs = result.frequencies()
logs[-1]["measurement_time"] = time.time() - start_time

if logs[-1]["backend"] == "qibojit" and qibo.K.engine.name == "numba":
if logs[-1]["backend"] == "qibojit" and qibo.K.platform.name == "numba":
from numba import threading_layer
logs[-1]["threading"] = threading_layer()

Expand Down
2 changes: 1 addition & 1 deletion src/qibo/tests/test_prints.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, code, filedir=None):
@classmethod
def from_file(cls, filedir):
assert filedir[-3:] == ".py"
with open(filedir, "r") as file:
with open(filedir, "r", encoding="utf-8") as file:
code = file.read()
return cls(code, filedir)

Expand Down

0 comments on commit 93434df

Please sign in to comment.