Skip to content

Commit

Permalink
[QI2-1098] Add device registration for QI2 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasKA committed Oct 26, 2024
1 parent 8a3700b commit 3ffc8af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions pennylane_quantuminspire2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .qi_device import QI2Device
import pennylane as qml

qml.devices.register(
"quantum_inspire.stubbed",
lambda **kwargs: QI2Device(backend=QI2Device.get_backend(name="Stubbed"), **kwargs)
)

qml.devices.register(
"quantum_inspire.qx_emulator",
lambda **kwargs: QI2Device(backend=QI2Device.get_backend(name="QX emulator"), **kwargs)
)
2 changes: 1 addition & 1 deletion tests/e2e_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ def main(name: str) -> None:
)

args = parser.parse_args()
# main(args.name)
main(args.name)
pass

0 comments on commit 3ffc8af

Please sign in to comment.