qiskit-community / qiskit-qec

Qiskit quantum error correction framework
https://qiskit-community.github.io/qiskit-qec/
Apache License 2.0
84 stars 35 forks source link

294 continue xp algebra #304

Closed ruihao-li closed 1 year ago

ruihao-li commented 1 year ago

Summary

PR for Issue #294. It includes implementation of several XP algebra methods in BaseXPPauli, XPPauli, and XPPauliList 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 an XPPauliList object can be raised to different powers.

Corresponding unittests are added to test_xp_pauli.py and test_xp_pauli_list.py.