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.