|View source on GitHub|
The number operator.
contract( brastate: "Wavefunction", ketstate: "Wavefunction" ) -> complex
Given two wavefunctions, generate the expectation value of the operator according to its representation.
||Wavefunction on the bra side.|
||Wavefunction on the ket side.|
Returns the rank of the number operator.
Returns the representation of the number operator, which is 'N'.