Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove deprecated import path for QubitDevice #281

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/braket/pennylane_plugin/ahs_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

import numpy as np
import pennylane as qml
from pennylane import QubitDevice
from pennylane._version import __version__
from pennylane.devices import QubitDevice
from pennylane.measurements import MeasurementProcess, SampleMeasurement
from pennylane.ops import CompositeOp, Hamiltonian
from pennylane.pulse import ParametrizedEvolution
Expand Down
3 changes: 2 additions & 1 deletion src/braket/pennylane_plugin/braket_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@

import numpy as onp
import pennylane as qml
from pennylane import QuantumFunctionError, QubitDevice
from pennylane import QuantumFunctionError
from pennylane import numpy as np
from pennylane.devices import QubitDevice
from pennylane.gradients import param_shift
from pennylane.measurements import (
Counts,
Expand Down
3 changes: 2 additions & 1 deletion test/unit_tests/test_braket_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
OQC_PULSE_PROPERTIES_ALL_FRAMES,
RESULT,
)
from pennylane import QuantumFunctionError, QubitDevice
from pennylane import QuantumFunctionError
from pennylane import numpy as np
from pennylane.devices import QubitDevice
from pennylane.pulse import ParametrizedEvolution
from pennylane.tape import QuantumScript, QuantumTape

Expand Down
Loading