pdft.manifolds.Unitary2qManifold#
- class pdft.manifolds.Unitary2qManifold[source]#
Bases:
objectU(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