Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 13, 2024
1 parent 0960ea5 commit aef64b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_ui_mpldrawer.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""Tests for Qibo matplotlib drawer"""

from PIL import Image
import numpy as np
import pytest
from pathlib import Path

import matplotlib.pyplot
import numpy as np
import pytest
from PIL import Image

from qibo import Circuit, callbacks, gates
from qibo.models import QFT
from qibo.ui.drawer_utils import FusedEndGateBarrier, FusedStartGateBarrier
Expand All @@ -19,6 +21,7 @@

BASEPATH = str(Path(__file__).parent / "test_ui_images")


# convert an image to RGBA numpy array
def img2array(img_path):
img = Image.open(img_path)
Expand Down

0 comments on commit aef64b4

Please sign in to comment.