Re: Second quantization with fermionic operators

2009-10-08 Thread Øyvind Jensen
> Yes, I am aware of that. Thanks for your patches, I'll try it and see > where the bottleneck is. Btw in your first patch, you seem to have a > bogus line (with kwargs), which is not used anywhere, unless I am > missing something. > > Ondrej That was indeed an error. It is fixed in this new pa

Re: Second quantization with fermionic operators

2009-10-08 Thread Øyvind Jensen
Thanks for your swift responses, I've got some comments: > * In various places you use the variable "str." This is dangerous as > str is a builtin type (a string). Absolutely, It should be substituted immediately. > * It is a little awkward to have the occupation #'s stored differently > for b

Re: Second quantization with fermionic operators

2009-10-08 Thread jegerjensen
Ooops! I have to correct myself: > The reason I chose the sparse format for the Fermionic case was not > because of storage considerations. Rather because I wanted to treat > problems without depending on the number of particles and the size of > the model space.  I believe the framework will be