Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def thermal_loss(self, T, nbar, k):
raise ValueError("Cannot apply loss channel, mode does not exist")

self.loss(T, k)
self.nmat += (1 - T) * nbar
self.nmat[k, k] += (1 - T) * nbar

def init_thermal(self, population, mode):
"""Initializes a state of mode in a thermal state with the given population"""
Expand Down