Skip to content

Commit

Permalink
Print error on import
Browse files Browse the repository at this point in the history
  • Loading branch information
mlxd committed Aug 23, 2024
1 parent dd5dca1 commit 7209578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pennylane_lightning/lightning_kokkos/lightning_kokkos.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
)

LK_CPP_BINARY_AVAILABLE = True
except ImportError:
except ImportError as e:
print(e)
LK_CPP_BINARY_AVAILABLE = False
backend_info = None

Expand Down
3 changes: 2 additions & 1 deletion pennylane_lightning/lightning_qubit/lightning_qubit.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
from pennylane_lightning.lightning_qubit_ops import backend_info

LQ_CPP_BINARY_AVAILABLE = True
except ImportError:
except ImportError as e:
print(e)
LQ_CPP_BINARY_AVAILABLE = False

Result_or_ResultBatch = Union[Result, ResultBatch]
Expand Down

0 comments on commit 7209578

Please sign in to comment.