JuliaAttic / QuBase.jl

A foundational library for quantum mechanics in Julia
Other
43 stars 6 forks source link

Rename (anti)commutator to (anti)commute. #27

Closed acroy closed 9 years ago

acroy commented 9 years ago

IMHO this is more consistent with scale, add etc. Moreover, I would like to reserve Commutator and Anticommutator for lazy (anti)commutators or types representing the respective super-operators.

amitjamadagni commented 9 years ago

I guess it would be great if we could move the comments from the tests to the main code, as this would help in generating docs and also keep the test code free from docs. In sense we could have some examples as well in the docs and these examples would act as tests, further helping us to understand.

acroy commented 9 years ago

Yeah, maybe it is possible to cross-link to the docs in the main code? The comments now were just intended to remind us of the purpose of the tests.

amitjamadagni commented 9 years ago

I will trying going through the doc packages if we can do the cross-link. Sure, these things will definitely help us in the future :)

jrevels commented 9 years ago

Good call. Commutator/Anticommutator types would indeed be cool.

This looks good to me, I'll merge it in.