Mapper Library
This module provides efficient implementations of commonly used operator representation mapper routines.
Python wrappers
The functions below are thin, type-agnostic convenience mappers. Each delegates to the appropriate library implementation below under the hood, based on the type of the object it is given. They do not implement any conversion logic themselves.
fermion_operator(operator) | Converts an operator into a FermionOperator. |
jordan_wigner(operator, num_qubits) | Map an operator to a SparseObservable under the Jordan-Wigner transformation. |
majorana_operator(operator) | Converts an operator into a MajoranaOperator. |
Library implementations
The functions below are the native, efficient mapper implementations backing this module.
fermion_jordan_wigner(op, num_qubits) | Map a FermionOperator to a SparseObservable under the Jordan-Wigner transformation. |
fermion_to_majorana(fer_op) | Map a FermionOperator to a MajoranaOperator. |
majorana_to_fermion(maj_op) | Map a MajoranaOperator to a FermionOperator. |
edge_vertex_to_fermion(inter_op) | Map an EdgeVertexOperator to a FermionOperator. |
edge_vertex_to_majorana(inter_op) | Map an EdgeVertexOperator to a MajoranaOperator. |
transfer_vertex_to_fermion(inter_op) | Map a TransferVertexOperator to a FermionOperator. |
transfer_vertex_to_majorana(inter_op) | Map a TransferVertexOperator to a MajoranaOperator. |
transfer_vertex_to_edge_vertex(inter_op) | Map a TransferVertexOperator to an EdgeVertexOperator. |