Closed ruihao-li closed 1 year ago
PR for Issue #294. It includes implementation of several XP algebra methods in BaseXPPauli, XPPauli, and XPPauliList classes. See details below.
BaseXPPauli
XPPauli
XPPauliList
Functionality implemented (XP* are function names from Mark's code, name in brackets is the new name):
Furthermore, the power method is modified such that now XP operators in an XPPauliList object can be raised to different powers.
power
Corresponding unittests are added to test_xp_pauli.py and test_xp_pauli_list.py.
test_xp_pauli.py
test_xp_pauli_list.py
Summary
PR for Issue #294. It includes implementation of several XP algebra methods in
BaseXPPauli
,XPPauli
, andXPPauliList
classes. See details below.Details and comments
Functionality implemented (XP* are function names from Mark's code, name in brackets is the new name):
Furthermore, the
power
method is modified such that now XP operators in anXPPauliList
object can be raised to different powers.Corresponding unittests are added to
test_xp_pauli.py
andtest_xp_pauli_list.py
.