orthogvc

◼ orthogvc[vecs, basis] orthogonalizes a list of vectors vecs in the occupation number representation basis basis.
◼ orthogop[vecs, basis] orthogonalizes a list of vectors vecs in the creation operator representation basis basis.

◼ Vectors are first decomposed in the given basis using decomposevc or decomposeop, then Householder is called to perform the orthogonalization.
◼ Householder is restricted to numeric matrices, therefore only vectors with numeric coefficients are allowed.

◼ See also: scalarproductop, scalarproductvc, decomposevc, decomposeop.

Further examples

Load sneg and declare c to be a fermionic operator

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

Creation operator representation

bz = makebasis[{c[1], c[2]}]
vecs = {c[CR, 1, UP] + c[CR, 2, UP], 
        c[CR, 1, UP] + 2  c[CR, 2, UP]}
orthogop[vecs, bz]

Occupation number representation

bvc = ap[bz, VACUUM]
vecsvc = ap[vecs, VACUUM]
orthogvc[vecsvc, bvc]