qml.qchem._qubit_operator_to_terms

_qubit_operator_to_terms(qubit_operator)[source]

Converts OpenFermion QubitOperator to a 2-tuple of coefficients and PennyLane Pauli observables.

Parameters

qubit_operator (QubitOperator) – fermionic-to-qubit transformed operator in terms of Pauli matrices

Returns

coefficients and their corresponding PennyLane observables in the Pauli basis

Return type

tuple[array[float], Iterable[pennylane.operation.Observable]]