Skip to content

Commit

Permalink
codefactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arsalan-motamedi committed Nov 1, 2024
1 parent d838350 commit 3430624
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mrmustard/lab_dev/transformations/phasenoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,5 @@ def __custom_rrshift__(self, other):
* self.phase_stdev.value**2
)
return DM.from_fock(other.modes, array, self.name)
else:
raise ValueError("The PhaseNoise object can only be applied to a DM or a Ket.")

0 comments on commit 3430624

Please sign in to comment.