Skip to content

Commit b022f64

Browse files
authored
Undo a code change that makes more sense the other way around
1 parent a7e83b0 commit b022f64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

recirq/fermi_hubbard/parameters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,4 +660,4 @@ def _potential_to_quadratic_hamiltonian(
660660

661661

662662
def _iterable_to_tuple(value: Any) -> Any:
663-
return value if isinstance(value, Real) else tuple(value)
663+
return tuple(value) if isinstance(value, Iterable) else value

0 commit comments

Comments
 (0)