pdft.manifolds.UnitaryManifold#
- class pdft.manifolds.UnitaryManifold(d=2)[source]#
Bases:
objectU(d) unitary group manifold; tensors are d × d unitary matrices.
The
dfield defaults to 2 for backward compatibility with all pre-RichBasis call sites. Settingdis what makes U(2) and U(4) bucket into separate groups ingroup_by_manifold(without it,stack_tensorswould try to stack mismatched shapes).Mirror of upstream src/manifolds.jl:161-196.
- Parameters:
d (int)
Methods
__init__([d])project(U, G)U * skew(U^H G)on(d, d, n).retract(U, Xi, alpha, *[, I_batch])Cayley retraction:
(I - a/2 W)^{-1} (I + a/2 W) U, W = skew(Xi U^H).transport(U_old, U_new, v)Parallel transport via re-projection.
Attributes