Skip to content

Commit

Permalink
Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
thangleiter committed Jul 3, 2020
1 parent a6afbb9 commit 0fd65de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions filter_functions/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ def plot_bloch_vector_evolution(pulse: 'PulseSequence',
--------
qutip.bloch.Bloch: Qutip's Bloch sphere implementation.
"""
from mpl_toolkits.mplot3d import Axes3D

# Raise an exception if not a one-qubit pulse
if not pulse.d == 2:
raise ValueError('Plotting Bloch sphere evolution only implemented ' +
Expand Down
3 changes: 1 addition & 2 deletions tests/test_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ def test_plotting_not_available(self):
reason='Skipping tests for missing bloch sphere visualization tests in build with qutip') # noqa
def test_bloch_sphere_visualization_not_available(self):

with self.assertWarns(UserWarning):
from filter_functions import plotting
from filter_functions import plotting

with self.assertRaises(RuntimeError):
plotting.get_bloch_vector(testutil.rng.standard_normal((10, 2)))
Expand Down
4 changes: 2 additions & 2 deletions tests/testutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
from pathlib import Path

import numpy as np
from numpy.random import RandomState
from numpy import random
from numpy.testing import assert_allclose, assert_array_equal
from scipy import io
from scipy import linalg as sla

from filter_functions import Basis, PulseSequence, util

rng = RandomState()
rng = random.RandomState()


class TestCase(unittest.TestCase):
Expand Down

0 comments on commit 0fd65de

Please sign in to comment.