Closed i2000s closed 10 years ago
Thanks. I am not sure if sparse
should complain if the lengths of the index vectors don't match the length of the value vector? Might be worth opening an issue?!
What do you mean by "will work for dimension>=2" though? This function gives the creation operator for single bosonic degree of freedom in Fock state rep. We might have to rename it to make this clearer...
"will work for dimension>=2" refers to the index of 'dn-2'. It will give a boundary error if the lengths of vectors do not match. No worry about this kind of definitions for this moment.
This will work for dimension>=2 for now. For general case, we can wait for the QuRep.jl project.