Commit f57ab554 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

DensityMatrixSvd: bug fix for latest change

parent 2fbfebcb
......@@ -144,11 +144,12 @@ class DensityMatrixSvd : public DensityMatrixBase<TargetingType> {
}
}
void deleteMatrix(SizeType i)
void deleteMatrix(SizeType igroup)
{
assert(i < m_.size());
delete m_[i];
m_[i] = nullptr;
SizeType index = groupIndex(igroup);
assert(index < m_.size());
delete m_[index];
m_[index] = nullptr;
}
void push(SizeType igroup,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment