ndx2op

◼ ndx2op[n] returns the creation operator corresponding to the index n in the basis declared by makebasis.

◼ See also: basis, makebasis, goodopQ, op2ndx, vacuum, ap, vc, vc2ops.

Further examples

Load sneg and declare some quantities

<< sneg`sneg`;
snegfermionoperators[c, d];

Construct a basis for two lattice sites c and d

bz = makebasis[{c[], d[]}]

Map[ndx2op, Range[4]]
% == bz

Operators returned by ndx2op are the creation operators!

ndx2op[op2ndx[c[CR, UP]]]
ndx2op[op2ndx[c[CR, DO]]]
ndx2op[op2ndx[c[AN, UP]]]
ndx2op[op2ndx[c[AN, DO]]]

ndx2op[op2ndx[d[CR, UP]]]
ndx2op[op2ndx[d[CR, DO]]]
ndx2op[op2ndx[d[AN, UP]]]
ndx2op[op2ndx[d[AN, DO]]]

ndx2op[op2ndx[c[any, UP]]]
ndx2op[op2ndx[c[any, DO]]]
ndx2op[op2ndx[d[any, UP]]]
ndx2op[op2ndx[d[any, DO]]]