Skip to content

Commit

Permalink
add envelope to hash
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanazawa1989 committed Jun 14, 2022
1 parent ef35cd9 commit 15e9f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/pulse/library/symbolic_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def __hash__(self) -> int:
raise NotImplementedError(
"Hashing a symbolic pulse with unassigned parameter is not supported."
)
return hash((self._pulse_type, self.duration, *tuple(self._params.items())))
return hash((self._pulse_type, self._envelope, self.duration, *tuple(self._params.items())))

def __repr__(self) -> str:
param_repr = ", ".join(f"{p}={v}" for p, v in self.parameters.items())
Expand Down

0 comments on commit 15e9f7c

Please sign in to comment.