Skip to content

Commit

Permalink
moved qiskit import in the test folder inside the function to prevent…
Browse files Browse the repository at this point in the history
… crash due to qiskit 1.0
  • Loading branch information
positr0nium committed Feb 16, 2024
1 parent 04ed210 commit ee60d49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_qiskit_backend_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
from qrisp.core import QuantumSession
from qrisp.interface.backends import VirtualBackend
from qrisp.interface.backends import VirtualQiskitBackend
from qiskit import Aer



def test_qiskit_backend_client():
# TO-DO prevent this test from crashing regardless of functionality
return
from qiskit import Aer
# Create QuantumSession
qs = QuantumSession()

Expand Down
3 changes: 2 additions & 1 deletion tests/test_unitary_calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
from qrisp.core import QuantumSession
from qrisp.arithmetic import QuantumFloat
from numpy.linalg import norm
from qiskit import execute, Aer

from qrisp.interface import convert_circuit


def test_unitary_calculation():
from qiskit import execute, Aer
n = 2

qs = QuantumSession()
Expand Down

0 comments on commit ee60d49

Please sign in to comment.