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

Add simulate of analytic case for DefaultMixedNewAPI #6618

Merged
merged 83 commits into from
Dec 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
1b8e845
Implement execution for new default mixed api
JerryChen97 Nov 19, 2024
8809d76
add preproc signature
JerryChen97 Nov 19, 2024
5ff4f14
add _setup_execution_config
JerryChen97 Nov 19, 2024
e2f3d0a
add necessary other components to the default_mixed device
JerryChen97 Nov 19, 2024
b620d0b
add test modules for preprocessing.
JerryChen97 Nov 19, 2024
95ae121
Merge remote-tracking branch 'origin/master' into add-default_mixed.p…
JerryChen97 Nov 19, 2024
a57013c
add changelog
JerryChen97 Nov 19, 2024
07b3b56
add two more tests to cover codecov missing lines
JerryChen97 Nov 19, 2024
7899ab9
Update pennylane/devices/default_mixed.py
JerryChen97 Nov 19, 2024
5fe16c3
Add simulate of analytic case for DefaultMixedNewAPI
JerryChen97 Nov 20, 2024
04b5cb8
save
JerryChen97 Nov 20, 2024
429d42e
Merge branch 'master' into add-default_mixed.preprocess
JerryChen97 Nov 21, 2024
fcafde3
update comparing against the DefaultMixedNewAPI
JerryChen97 Nov 21, 2024
aad256e
add LinearCombination branch for tests
JerryChen97 Nov 21, 2024
de1e38d
unify the style better for potential debug in future
JerryChen97 Nov 21, 2024
1fb86a7
Merge branch 'master' into add-default_mixed.preprocess
JerryChen97 Nov 21, 2024
60ecb2b
lift operation list from class attri to global [skip-ci]
JerryChen97 Nov 21, 2024
21fc557
not providing shots stopping cond
JerryChen97 Nov 21, 2024
92aa57b
[skip-ci]
JerryChen97 Nov 21, 2024
97a35a4
Update pennylane/devices/default_mixed.py
JerryChen97 Nov 21, 2024
8bc5d8d
Update pennylane/devices/default_mixed.py
JerryChen97 Nov 21, 2024
b4eed5b
Update pennylane/devices/default_mixed.py
JerryChen97 Nov 21, 2024
ce91585
not provide accepted sample measuremnet [skip-ci]
JerryChen97 Nov 21, 2024
84799a3
correct test for using device backprop
JerryChen97 Nov 21, 2024
fd618b2
Merge branch 'master' into add-default_mixed.preprocess
JerryChen97 Nov 21, 2024
4443acc
Merge branch 'add-default_mixed.preprocess' into new-mixed-execution
JerryChen97 Nov 21, 2024
e681435
add execute (copying paste from qutrit ...) [skip-ci]
JerryChen97 Nov 21, 2024
7897386
placeholder simualte.py
JerryChen97 Nov 21, 2024
589aeac
Merge branch 'new-mixed-execution' into add-analytic-simulate-for-mix…
JerryChen97 Nov 21, 2024
9d42c2b
temp save
JerryChen97 Nov 25, 2024
4c8b0cb
debug H test expected method
JerryChen97 Nov 26, 2024
584a5dc
add conftest
JerryChen97 Nov 26, 2024
05ba66d
debug expval analytic
JerryChen97 Nov 26, 2024
a58d6e7
add measure
JerryChen97 Nov 26, 2024
ac8ecd2
add import
JerryChen97 Nov 26, 2024
8ba948d
add coverage and stop pylint from crime
JerryChen97 Nov 26, 2024
9816727
let's just eazy fix it
JerryChen97 Nov 26, 2024
d752148
Merge branch 'master' into add-qubit_mixed/measure
JerryChen97 Nov 26, 2024
0aa7876
add item to log
JerryChen97 Nov 26, 2024
a02bc51
draft?
JerryChen97 Nov 26, 2024
1b221a6
add sim to init
JerryChen97 Nov 27, 2024
3c8493e
tests: 1. interface
JerryChen97 Nov 27, 2024
5dd46dd
tests: 2. basic circuits
JerryChen97 Nov 27, 2024
87130e3
tests: 3. broadcasting
JerryChen97 Nov 27, 2024
863eea8
del debugger test since debug is yet implemented until everything els…
JerryChen97 Nov 27, 2024
cfe3aa0
merge changelogs of 6576 and 6564 into one
JerryChen97 Nov 27, 2024
9187533
reuse math.reduce_dm
JerryChen97 Nov 28, 2024
1307961
[skip-ci]
JerryChen97 Nov 28, 2024
a22d65b
Use probsmp process_density_matrix
JerryChen97 Nov 28, 2024
47f4929
Update doc/releases/changelog-dev.md
JerryChen97 Nov 28, 2024
6cd7698
Update pennylane/devices/default_mixed.py
JerryChen97 Nov 28, 2024
ff09567
Merge branch 'master' into add-qubit_mixed/measure
JerryChen97 Nov 28, 2024
3fb417a
Merge branch 'add-qubit_mixed/measure' into add-analytic-simulate-for…
JerryChen97 Nov 28, 2024
c5eed89
not needed
JerryChen97 Nov 28, 2024
cca927e
fix sphinx
JerryChen97 Nov 28, 2024
c266b34
2nd time to save sphinx
JerryChen97 Nov 28, 2024
d80046d
forgot the second line...
JerryChen97 Nov 29, 2024
f3f26ec
fix some merge issue
JerryChen97 Nov 29, 2024
da9e8af
another
JerryChen97 Nov 29, 2024
f8437da
Merge branch 'master' into add-analytic-simulate-for-mixed-new-api
JerryChen97 Dec 2, 2024
eca2efd
correct log
JerryChen97 Dec 2, 2024
ae7f314
revert some unnecessary change for now in absence of execution PR
JerryChen97 Dec 2, 2024
8d7b5fa
revert an implicit merge conflict
JerryChen97 Dec 2, 2024
8877ec1
revert unnecessary mod
JerryChen97 Dec 2, 2024
5aba100
raise NotImplemented for finite shots along with tests
JerryChen97 Dec 2, 2024
3405308
fix docstr
JerryChen97 Dec 2, 2024
4718055
Update pennylane/devices/qubit_mixed/measure.py
JerryChen97 Dec 3, 2024
2b0eecc
rm pylint/black blockers
JerryChen97 Dec 3, 2024
b423027
rm non from interface dict
JerryChen97 Dec 3, 2024
1253025
Merge branch 'master' into add-analytic-simulate-for-mixed-new-api
JerryChen97 Dec 3, 2024
547f140
Update pennylane/devices/qubit_mixed/simulate.py
JerryChen97 Dec 4, 2024
71f9b1a
Update pennylane/devices/qubit_mixed/simulate.py
JerryChen97 Dec 4, 2024
5181416
del many comments causing confusion
JerryChen97 Dec 4, 2024
cbeb539
rename subspace -> wires
JerryChen97 Dec 4, 2024
628d67d
del unnecessary static method
JerryChen97 Dec 4, 2024
f135459
apply all wires
JerryChen97 Dec 4, 2024
af6d75b
apply suggestions
JerryChen97 Dec 4, 2024
611c77d
Merge branch 'add-analytic-simulate-for-mixed-new-api' of https://git…
JerryChen97 Dec 4, 2024
85c4af1
debug
JerryChen97 Dec 4, 2024
d4348c5
mroe informative comment
JerryChen97 Dec 4, 2024
d550d95
more simplification along with infromation comments [skip-ci]
JerryChen97 Dec 4, 2024
52a681f
Merge branch 'master' into add-analytic-simulate-for-mixed-new-api
JerryChen97 Dec 4, 2024
e9c8f7e
Merge branch 'master' into add-analytic-simulate-for-mixed-new-api
JerryChen97 Dec 4, 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
Prev Previous commit
Merge branch 'master' into add-analytic-simulate-for-mixed-new-api
JerryChen97 authored Dec 4, 2024
commit e9c8f7e11d01a550765387c6780508c143058e7c
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
@@ -99,6 +99,9 @@ added `binary_mapping()` function to map `BoseWord` and `BoseSentence` to qubit
featuring a `simulate` function for simulating mixed states in analytic mode.
[(#6618)](https://github.com/PennyLaneAI/pennylane/pull/6618)

* Added submodule `devices.qubit_mixed.sampling` as a necessary step for the new API, featuring functions `sample_state`, `measure_with_samples` and `sample_probs` for sampling qubits in mixed-state devices.
[(#6639)](https://github.com/PennyLaneAI/pennylane/pull/6639)

* Support is added for `if`/`else` statements and `for` and `while` loops in circuits executed with `qml.capture.enabled`, via `autograph`
[(#6406)](https://github.com/PennyLaneAI/pennylane/pull/6406)
[(#6413)](https://github.com/PennyLaneAI/pennylane/pull/6413)
2 changes: 2 additions & 0 deletions pennylane/devices/qubit_mixed/__init__.py
Original file line number Diff line number Diff line change
@@ -25,8 +25,10 @@
create_initial_state
measure
simulate
sampling
"""
from .apply_operation import apply_operation
from .initialize_state import create_initial_state
from .measure import measure
from .simulate import get_final_state, measure_final_state, simulate
from .sampling import sample_state, measure_with_samples
You are viewing a condensed version of this merge commit. You can view the full changes here.