pdft.manifolds.Unitary2qManifold#

class pdft.manifolds.Unitary2qManifold[source]#

Bases: object

U(4) manifold for 2-qubit gates stored in (2, 2, 2, 2) tensor form.

Storage convention: axes (out_ctrl, out_tgt, in_ctrl, in_tgt). This is the canonical form for a 2-qubit gate as it appears in the einsum builder (rank-4 to match 4 qubit-axis subscripts). All Riemannian operations reshape to (4, 4, n) internally and reuse the U(d=4) math.

__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