mindquantum.core.operators.get_fermion_operator
- mindquantum.core.operators.get_fermion_operator(operator)[source]
Convert the tensor (PolynomialTensor) to FermionOperator.
- Parameters
operator (PolynomialTensor) – The PolynomialTensor you want to convert to FermionOperator.
- Returns
FermionOperator, An instance of the FermionOperator class.