Closed fdmalone closed 7 months ago
Do you have any leads on what changed?
Just looking at the release notes it's looks like there were some PRs related to EigenGate which this QFSG inherits from (e.g. https://github.com/quantumlib/Cirq/pull/6231), not sure if related yet.
I see https://github.com/quantumlib/Cirq/pull/6275 and I see that the test is trying to make a shallow copy of the gate with __copy__
. I would bet money that this is the source of the issue
diff --git a/src/openfermion/circuits/gates/fermionic_simulation.py b/src/openfermion/circuits/gates/fermionic_simulation.py
index 3c03e11..0face4b 100644
--- a/src/openfermion/circuits/gates/fermionic_simulation.py
+++ b/src/openfermion/circuits/gates/fermionic_simulation.py
@@ -182,7 +182,7 @@ def sum_of_interaction_operator_gate_generators(
return operator
-@cirq.value_equality(approximate=True)
+@cirq.value_equality(approximate=True, unhashable=True)
class ParityPreservingFermionicGate(cirq.Gate, metaclass=abc.ABCMeta):
r"""The Jordan-Wigner transform of $\exp(-i H)$ for a fermionic
Hamiltonian $H$.
fixes
Fixed in #867
this passes with cirq == 1.2.0, but fails for cirq == 1.3.0