Skip to content

Commit

Permalink
fixed a error in defaultHamiltonianOpers I made from converting noteb…
Browse files Browse the repository at this point in the history
…ook to package file
  • Loading branch information
pchong90 committed Sep 11, 2014
1 parent 6d6aa31 commit 1299922
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions SeQuant.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(* ::Package:: *)

(*BeginPackage["SeQuant`"]*)
(*BeginPackage["SeQuant`"];*)

(* Setting up internal things *)
Off[General::spell];
Expand All @@ -10,25 +10,25 @@
(*SetOptions[$FrontEnd,CommonDefaultFormatTypes->{"Output"->TraditionalForm}];*)
NCM = NonCommutativeMultiply;


(* ::Section:: *)
(* Global Parameters *)


(*
Special Operators
*)
Unprotect[defaultHamiltonianOpers];
Unprotect[ignoreDisconnectedOpers];
Unprotect[ignoreConnectedOpers];
defaultHamiltonianOpers = {"F","g","Overscript[g, _]"};
defaultHamiltonianOpers = {"F","g","\!\(\*OverscriptBox[\(g\), \(_\)]\)"};
ignoreDisconnectedOpers = {};
ignoreConnectedOpers = {};
Protect[ignoreConnectedOpers];
Protect[ignoreDisconnectedOpers];
Protect[defaultHamiltonianOpers];



(* ::Section:: *)
(* Global Parameters *)


(*
Global SeQuant Parameters
*)
Expand All @@ -44,10 +44,6 @@
];


(* ::Section:: *)
(* Space Class *)


(* Definition of spaces *)
occ = particleSpace[occupied];
virt = particleSpace[virtual];
Expand Down Expand Up @@ -89,9 +85,9 @@
DefaultSpaceSymbol[allany] = "\[Kappa]";



(* ::Section:: *)
(* particleIndex class *)
(* particleIndex Class *)



(* create particleIndex with space and symbol i *)
Expand Down Expand Up @@ -242,7 +238,7 @@


(* ::Section:: *)
(* SQS class *)
(* SQS Class *)


(*
Expand Down Expand Up @@ -386,7 +382,7 @@
(* convention labels strings normal-ordered wrt to nonphysical vacuum as tilde{a} *)
bodyLabel = If[ SeQuantVacuum==SeQuantVacuumChoices["Physical"],
"a",
OverTilde["a"]
"\[ATilde]"
];
supInds = "";
subInds = "";
Expand Down Expand Up @@ -1871,7 +1867,7 @@ orderedForm puts elements of SQ expressions (SQ strings SQS and matrix elements
MemberQ[x,y_particleIndex/;spaceWRTFermiLevel[indexSpace[y]]===+1]->0

(* toolkit is ready *)
Print["SeQuant is loaded and ready...\n"]
Print["SeQuant is loaded and ready...\n"];
(*EndPackage[]*)


Expand Down

0 comments on commit 1299922

Please sign in to comment.