We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 934298e commit 2a72e96Copy full SHA for 2a72e96
2 files changed
.github/workflows/pr.yaml
@@ -16,6 +16,7 @@ on:
16
pull_request:
17
branches:
18
- main
19
+ - v0.6
20
21
concurrency:
22
# Cancel any previously-started but still active runs on the same branch.
qualtran/_infra/bloq.py
@@ -486,11 +486,11 @@ def as_pl_op(self, wires: 'Wires') -> 'Operation':
486
"""
487
try:
488
from pennylane.io import FromBloq
489
- except ImportError:
+ except ImportError as e:
490
raise NotImplementedError(
491
f"{self} does not have a native PennyLane operation. "
492
f"pennylane>=0.41 will wrap this bloq in the `pennylane.io.FromBloq` adapter."
493
- )
+ ) from e
494
495
return FromBloq(bloq=self, wires=wires)
496
0 commit comments