qiskit-nature icon indicating copy to clipboard operation
qiskit-nature copied to clipboard

Implements a reverse_map() method for JordanWignerMapper().

Open MarcoBarroca opened this issue 1 year ago • 13 comments

Summary

This implements a reverse_map() method in the JordanWignerMapper(). It allows users to go back from qubit operators into fermionic operators. Completes issue #255.

Also included a unit test.

Details and comments

Instead of using the implementation linked in issue #255 I modified it to use the FermionicOp object for the mapping. Seemed like it would be easier for anyone to understand the code. Both implementations are equivalent.

MarcoBarroca avatar Feb 25 '24 21:02 MarcoBarroca