We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 709a203 commit 21b1c2fCopy full SHA for 21b1c2f
recirq/fermi_hubbard/parameters.py
@@ -596,9 +596,7 @@ def representative_parameters(self) -> 'FermiHubbardParameters':
596
def equals_for_rescaling(self, other: 'FermiHubbardParameters') -> bool:
597
if not isinstance(other, FermiHubbardParameters):
598
return False
599
- if not isinstance(self.layout, type(other.layout)):
600
- return False
601
- if isinstance(self.layout, ZigZagLayout):
+ if isinstance(self.layout, ZigZagLayout) and isinstance(other.layout, ZigZagLayout):
602
interacting = not np.allclose(self.hamiltonian.u, 0.0)
603
other_interacting = not np.allclose(other.hamiltonian.u, 0.0)
604
return interacting == other_interacting
0 commit comments