View source on GitHub |
Decomposition helper.
openfermion.transforms.opconversions.dissolve(
term: Tuple[Any, Any]
) -> openfermion.ops.QubitOperator
Takes a product of binary variables 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 |