Commit 3d2bfc1f authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

HubbardAncilla: bug fix c <---> cdagger

This doesn't affect energies but does
affect the sign of the hopping
parent a732d561
......@@ -149,8 +149,7 @@ public:
RealType) const
{
SizeType linSize = ModelBaseType::superGeometry().numberOfSites();
SizeType n = block.size();
assert(n == 1);
assert(block.size() == 1);
SizeType site = block[0];
......
......@@ -208,9 +208,11 @@ protected:
su2related.offset = ORBITALS;
}
OperatorType myOp(tmpMatrix,
SparseMatrixType tmpMatrix2;
transposeConjugate(tmpMatrix2, tmpMatrix);
OperatorType myOp(tmpMatrix2,
ProgramGlobals::FermionOrBosonEnum::FERMION,
typename OperatorType::PairType(1,m),
typename OperatorType::PairType(1, m),
asign,
su2related);
c.push(myOp);
......
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