pdft.manifolds.EuclideanManifold#
- class pdft.manifolds.EuclideanManifold(shape)[source]#
Bases:
objectFlat space: arrays of
shapewhose entries are free numbers.Not in upstream. The tangent space at every point is the space itself, so there is nothing to project onto, nothing to retract to and nothing to transport: a step is
points + alpha * tangent. On real parametersRiemannianAdamis then Adam as Kingma and Ba state it. (A complex array is not treated as two real ones: its real and imaginary parts share one second moment.) It is the geometry of parameters that are not gate tensors, such as the angles aParameterViewreads off the controlled-phase gates.classify_manifoldnever returns it, since values cannot tell a free array from a phase tensor: name it throughgroup_by_manifold’smanifolds.shapetakes part in equality, asUnitaryManifold’sddoes, so arrays of different shapes fall into separate groups (a group is stacked into one array).Methods
__init__(shape)project(points, grads)retract(points, tangent, alpha, *[, I_batch])transport(old, new, vec)Attributes