pdft.manifolds.Orthogonal2qManifold#

class pdft.manifolds.Orthogonal2qManifold[source]#

Bases: object

O(4) for real-valued 2-qubit gates stored as (2, 2, 2, 2).

Same reshape-and-delegate strategy as Unitary2qManifold, but projects gradients to the REAL skew-symmetric tangent subspace so the tensor stays in O(4) under Cayley retraction.

__init__()#
Return type:

None

Methods

__init__()

project(T, G)

retract(T, Xi, alpha, *[, I_batch])

transport(T_old, T_new, v)

project(T, G)[source]#
Parameters:
Return type:

Array

retract(T, Xi, alpha, *, I_batch=None)[source]#
Parameters:
Return type:

Array

transport(T_old, T_new, v)[source]#
Parameters:
Return type:

Array