fqe.NumberOperator

The number operator.

Inherits From: FqeOperator

Methods

contract

View source

Given two wavefunctions, generate the expectation value of the operator according to its representation.

Args
brastate Wavefunction on the bra side.
ketstate Wavefunction on the ket side.

rank

View source

Returns the rank of the number operator.

representation

View source

Returns the representation of the number operator, which is 'N'.