Skip to content

Commit

Permalink
Update toml files with non_commuting_observables (#764)
Browse files Browse the repository at this point in the history
**Context:**
Catalyst is adding `non_commuting_observables` as a flag in the TOML
file, and conditionally applying the `split_non_commuting` transform in
the QJIT device preprocessing if the backend doesn't allow non-commuting
observables.

**Description of the Change:**
Update the lightning TOML files to indicate that non-commuting
observables are supported.

**Benefits:**
Lightning stays consistent with the changes in [this
PR](PennyLaneAI/catalyst#821)

---------

Co-authored-by: ringo-but-quantum <[email protected]>
  • Loading branch information
lillian542 and ringo-but-quantum authored Jun 18, 2024
1 parent a790d02 commit 9598b09
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.37.0-dev40"
__version__ = "0.37.0-dev41"
5 changes: 5 additions & 0 deletions pennylane_lightning/lightning_gpu/lightning_gpu.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@ mid_circuit_measurement = false
# This field is currently unchecked but it is reserved for the purpose of
# determining if the device supports dynamic qubit allocation/deallocation.
dynamic_qubit_management = false

# whether the device can support non-commuting measurements together
# in a single execution
non_commuting_observables = true

5 changes: 5 additions & 0 deletions pennylane_lightning/lightning_kokkos/lightning_kokkos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@ mid_circuit_measurement = true
# This field is currently unchecked but it is reserved for the purpose of
# determining if the device supports dynamic qubit allocation/deallocation.
dynamic_qubit_management = false

# whether the device can support non-commuting measurements together
# in a single execution
non_commuting_observables = true

4 changes: 4 additions & 0 deletions pennylane_lightning/lightning_qubit/lightning_qubit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ mid_circuit_measurement = true
# determining if the device supports dynamic qubit allocation/deallocation.
dynamic_qubit_management = false

# whether the device can support non-commuting measurements together
# in a single execution
non_commuting_observables = true

[options]

mcmc = "_mcmc"
Expand Down

0 comments on commit 9598b09

Please sign in to comment.