acroy / QuDOS.jl

Quantum Dynamics of Open Systems in Julia
Other
8 stars 3 forks source link

Fix the bug on the creation operator. #2

Closed i2000s closed 10 years ago

i2000s commented 10 years ago

This will work for dimension>=2 for now. For general case, we can wait for the QuRep.jl project.

acroy commented 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...

i2000s commented 10 years ago

"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.