FermionicOperator.mapping

FermionicOperator.mapping(map_type, threshold=1e-08)[source]

Map fermionic operator to qubit operator.

Using multiprocess to speedup the mapping, the improvement can be observed when h2 is a non-sparse matrix.

Parameters
  • map_type (str) – case-insensitive mapping type. “jordan_wigner”, “parity”, “bravyi_kitaev”, “bksf”

  • threshold (float) – threshold for Pauli simplification

Returns

create an Operator object in Paulis form.

Return type

WeightedPauliOperator

Raises

QiskitChemistryError – if the map_type can not be recognized.