We're celebrating World Quantum Day 2022! Join us

openfermion.transforms.qubit_operator_to_pauli_sum

Convert QubitOperator to a sum of PauliString.

operator (QubitOperator): operator to convert. qubits (List): Optional list of qubit names. If None a list of cirq.LineQubit of length number of qubits in operator is created.

pauli_sum (PauliSum): cirq PauliSum object.

TypeError if qubit_op is not a QubitOpertor.