Skip to content

Commit

Permalink
Support the construction of bosonic operators (#6518)
Browse files Browse the repository at this point in the history
**Context:**
We need `BoseWords` and `BoseSentences` to help us build vibrational
hamiltonians.

**Description of the Change:**
Add `BoseWords` and `BoseSentences`

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
[sc-72640]

---------

Co-authored-by: ddhawan11 <[email protected]>
Co-authored-by: Diksha Dhawan <[email protected]>
Co-authored-by: soranjh <[email protected]>
Co-authored-by: Utkarsh <[email protected]>
  • Loading branch information
5 people authored Nov 22, 2024
1 parent e8541af commit 9c1292d
Show file tree
Hide file tree
Showing 5 changed files with 1,856 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@

* Added submodule 'initialize_state' featuring a `create_initial_state` function for initializing a density matrix from `qml.StatePrep` operations or `qml.QubitDensityMatrix` operations.
[(#6503)](https://github.com/PennyLaneAI/pennylane/pull/6503)

* Added support for constructing `BoseWord` and `BoseSentence`, similar to `FermiWord` and `FermiSentence`.
[(#6518)](https://github.com/PennyLaneAI/pennylane/pull/6518)

* Added a second class `DefaultMixedNewAPI` to the `qml.devices.qubit_mixed` module, which is to be the replacement of legacy `DefaultMixed` which for now to hold the implementations of `preprocess` and `execute` methods.
[(#6607)](https://github.com/PennyLaneAI/pennylane/pull/6507)
Expand Down
1 change: 1 addition & 0 deletions pennylane/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
parity_transform,
bravyi_kitaev,
)
from pennylane.bose import BoseSentence, BoseWord
from pennylane.qchem import (
taper,
symmetry_generators,
Expand Down
3 changes: 3 additions & 0 deletions pennylane/bose/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""A module containing utility functions and mappings for working with bosonic operators. """

from .bosonic import BoseWord, BoseSentence
Loading

0 comments on commit 9c1292d

Please sign in to comment.