Commit 9d660cc4 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

Kitaev: bug fix to previous commit

parent 81b90b47
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -61,8 +61,6 @@ Model="Kitaev";

vector MagneticFieldX=[0,...];

vector MagneticFieldY=[0,...];

vector MagneticFieldZ=[0,...];
InfiniteLoopKeptStates=128;
FiniteLoops=[
+0 −12
Original line number Diff line number Diff line
@@ -459,18 +459,6 @@ private:
		HilbertBasisType natBasis;

		setBasis(natBasis, block);

		OpsLabelType& sy = this->createOpsLabel("sy");
		SparseMatrixType tmpMatrix = findSdirMatrices(0, natBasis, InternalDir::DIR_Y);
		tmpMatrix *= std::complex<RealType>(0, -1); // Sy = -iSybar
		typename OperatorType::Su2RelatedType su2related;
		OperatorType myOp2(tmpMatrix,
		                   ProgramGlobals::FermionOrBosonEnum::BOSON,
		                   PairType(0, 0),
		                   1.0,
		                   su2related);

		sy.push(myOp2); // Sybar = iSy
	}

	//! find all states in the natural basis for a block of n sites