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

Deprecate top level access to legacy device base classes #6238

Merged
merged 16 commits into from
Sep 13, 2024

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Sep 6, 2024

Context:

qml.Device, qml.QubitDevice, and qml.QutritDevice all reflect the legacy device interface, which is no longer the recommended way of creating devices.

Description of the Change:

Deprecate top level access to the Device, QubitDevice, and QutritDevice.

Benefits:

Further isolation of the legacy device interface.

Possible Drawbacks:

All deprecations propagate through the ecosystem and can cause issues.

Related GitHub Issues:

[sc-71519]

maliasadi added a commit to PennyLaneAI/pennylane-lightning that referenced this pull request Sep 11, 2024
**Context:**

In [PennyLane PR
#6238](PennyLaneAI/pennylane#6238) we will be
deprecating top level access to `QubitDevice`.

**Description of the Change:**

Imports `QubitDevice` from `pennylane.devices` instead.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

[sc-71519]

---------

Co-authored-by: ringo-but-quantum <github-ringo-but-quantum@xanadu.ai>
Co-authored-by: Amintor Dusko <87949283+AmintorDusko@users.noreply.github.com>
Co-authored-by: Ali Asadi <10773383+maliasadi@users.noreply.github.com>
@albi3ro albi3ro marked this pull request as ready for review September 12, 2024 13:58
Copy link

codecov bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.58%. Comparing base (060bb9a) to head (1053889).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6238      +/-   ##
==========================================
- Coverage   99.59%   99.58%   -0.02%     
==========================================
  Files         444      443       -1     
  Lines       42321    42231      -90     
==========================================
- Hits        42149    42054      -95     
- Misses        172      177       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tests/test_vqe.py Outdated Show resolved Hide resolved
.github/workflows/interface-unit-tests.yml Show resolved Hide resolved
doc/development/deprecations.rst Outdated Show resolved Hide resolved
pennylane/__init__.py Outdated Show resolved Hide resolved
@albi3ro albi3ro enabled auto-merge (squash) September 13, 2024 21:01
@albi3ro albi3ro merged commit 43cac72 into master Sep 13, 2024
37 checks passed
@albi3ro albi3ro deleted the deprecate-toplevel-device branch September 13, 2024 21:37
mudit2812 added a commit that referenced this pull request Sep 16, 2024
**Context:**

`qml.Device`, `qml.QubitDevice`, and `qml.QutritDevice` all reflect the
legacy device interface, which is no longer the recommended way of
creating devices.

**Description of the Change:**

Deprecate top level access to the `Device`, `QubitDevice`, and
`QutritDevice`.

**Benefits:**

Further isolation of the legacy device interface.

**Possible Drawbacks:**

All deprecations propagate through the ecosystem and can cause issues.

**Related GitHub Issues:**

[sc-71519]

---------

Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
mudit2812 added a commit that referenced this pull request Sep 16, 2024
**Context:**

`qml.Device`, `qml.QubitDevice`, and `qml.QutritDevice` all reflect the
legacy device interface, which is no longer the recommended way of
creating devices.

**Description of the Change:**

Deprecate top level access to the `Device`, `QubitDevice`, and
`QutritDevice`.

**Benefits:**

Further isolation of the legacy device interface.

**Possible Drawbacks:**

All deprecations propagate through the ecosystem and can cause issues.

**Related GitHub Issues:**

[sc-71519]

---------

Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
mudit2812 added a commit that referenced this pull request Sep 18, 2024
**Context:**

`qml.Device`, `qml.QubitDevice`, and `qml.QutritDevice` all reflect the
legacy device interface, which is no longer the recommended way of
creating devices.

**Description of the Change:**

Deprecate top level access to the `Device`, `QubitDevice`, and
`QutritDevice`.

**Benefits:**

Further isolation of the legacy device interface.

**Possible Drawbacks:**

All deprecations propagate through the ecosystem and can cause issues.

**Related GitHub Issues:**

[sc-71519]

---------

Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants