![]() |
Decomposition helper. Takes a product of binary variables
openfermion.transforms.opconversions.dissolve(
term: Tuple[Any, Any]
) -> openfermion.ops.QubitOperator
and outputs the Pauli-string sum that corresponds to the decomposed multi-qubit operator.
Args | |
---|---|
term (tuple): product of binary variables, i.e.: 'w0 w2 w3' |
Returns (QubitOperator): superposition of Pauli-strings
Raises | |
---|---|
ValueError
|
if the variable in term is not integer |