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

Importing the default.tensor in PL from the lightning.tensor device in PL lightning #5699

Merged
merged 37 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ffda6b1
WIP [ci skip]
PietropaoloFrisoni May 16, 2024
f20aea1
WIP part 2 [ci skip]
PietropaoloFrisoni May 16, 2024
f73422b
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 17, 2024
cd07fd1
solving issue in codefactor [ci skip]
PietropaoloFrisoni May 17, 2024
a4ee5b6
Setting up base test for `default.tensor` [ci-skip]
PietropaoloFrisoni May 17, 2024
da382ce
[ci skip]
PietropaoloFrisoni May 17, 2024
b0926e4
tests for expval and var included [ci skip]
PietropaoloFrisoni May 17, 2024
0c6b363
Push before discussion [ci skip]
PietropaoloFrisoni May 17, 2024
0a6e2e3
trying to set up tests
PietropaoloFrisoni May 17, 2024
b434e8c
Updating files with `default.tensor`
PietropaoloFrisoni May 17, 2024
af51004
Trying formatting
PietropaoloFrisoni May 17, 2024
38dca68
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 17, 2024
9be17b7
Trying to fix some issues
PietropaoloFrisoni May 17, 2024
4d8fb03
Trying to solve CI issues
PietropaoloFrisoni May 17, 2024
c2b7fdb
Solving more issues and doe coverage
PietropaoloFrisoni May 17, 2024
3976e15
forgot doc issue
PietropaoloFrisoni May 17, 2024
ca4f21c
Added check on wires
PietropaoloFrisoni May 21, 2024
fe986d9
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 21, 2024
382ec74
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 21, 2024
b2a8fe5
Updating changelog
PietropaoloFrisoni May 21, 2024
b067627
Typo in error message
PietropaoloFrisoni May 21, 2024
9184d6c
Applying suggestions from code review and making `wires` argument man…
PietropaoloFrisoni May 21, 2024
58163ea
Forgot removal
PietropaoloFrisoni May 21, 2024
d7a151f
Format check in test default tensor
PietropaoloFrisoni May 21, 2024
30b6b58
importing `default.tensor` in `init` file
PietropaoloFrisoni May 21, 2024
1ee0da6
stop testing a wire value of None
albi3ro May 22, 2024
5050585
Removed string in doc specifying default value of `wires` argument (w…
PietropaoloFrisoni May 22, 2024
abb9465
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 22, 2024
52c4212
Merge branch 'master' of https://github.com/PennyLaneAI/pennylane int…
PietropaoloFrisoni May 23, 2024
dac89e6
Catching the case of `wires=None` in class instantion
PietropaoloFrisoni May 23, 2024
686b2b8
Typo in formatting
PietropaoloFrisoni May 23, 2024
f16d364
Removing the `shot` argument
PietropaoloFrisoni May 23, 2024
37fe8dd
Typo in string [ci skip]
PietropaoloFrisoni May 23, 2024
73d596e
Typo in string [ci skip]
PietropaoloFrisoni May 23, 2024
696002f
Merge branch 'master' into default_tensor_device
PietropaoloFrisoni May 23, 2024
a5937f8
Triggering CI
PietropaoloFrisoni May 23, 2024
a747fd7
Merge branch 'default_tensor_device' of https://github.com/PennyLaneA…
PietropaoloFrisoni May 23, 2024
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 .github/workflows/interface-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
install_pennylane_lightning_master: false
pytest_coverage_flags: ${{ inputs.pytest_coverage_flags }}
pytest_markers: external
additional_pip_packages: pyzx pennylane-catalyst matplotlib stim
additional_pip_packages: pyzx pennylane-catalyst matplotlib stim quimb
requirements_file: ${{ strategy.job-index == 0 && 'external.txt' || '' }}
disable_new_opmath: ${{ inputs.disable_new_opmath }}

Expand Down
2 changes: 1 addition & 1 deletion doc/introduction/circuits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ instantiated using the :func:`device <pennylane.device>` loader.
dev = qml.device('default.qubit', wires=2, shots=1000)

PennyLane offers some basic devices such as the ``'default.qubit'``, ``'default.mixed'``, ``lightning.qubit``,
``'default.gaussian'``, and ``'default.clifford'`` simulators; additional devices can be installed as plugins
``'default.gaussian'``, ``'default.clifford'``, and ``'default.tensor'`` simulators; additional devices can be installed as plugins
(see `available plugins <https://pennylane.ai/plugins.html>`_ for more details). Note that the
choice of a device significantly determines the speed of your computation, as well as
the available options that can be passed to the device loader.
Expand Down
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

<h3>New features since last release</h3>

* The `default.tensor` device is introduced to perform tensor network simulation of a quantum circuit.
[(#5699)](https://github.com/PennyLaneAI/pennylane/pull/5699)

<h3>Improvements 🛠</h3>

* The sorting order of parameter-shift terms is now guaranteed to resolve ties in the absolute value with the sign of the shifts.
Expand Down
3 changes: 2 additions & 1 deletion pennylane/devices/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def execute(self, circuits, execution_config = qml.devices.DefaultExecutionConfi

# DefaultQubitTF and DefaultQubitAutograd not imported here since this
# would lead to an automatic import of tensorflow and autograd, which are
# not PennyLane core dependencies
# not PennyLane core dependencies. DefaultTensor is not imported here
# since it would lead to an automatic import of quimb.
PietropaoloFrisoni marked this conversation as resolved.
Show resolved Hide resolved
from .default_qubit_legacy import DefaultQubitLegacy
from .default_gaussian import DefaultGaussian
from .default_mixed import DefaultMixed
Expand Down
Loading
Loading