Skip to content

dq.dag

dag(x: ArrayLike) -> Array

Returns the adjoint (complex conjugate transpose) of a matrix.

Parameters

  • x (array_like of shape (..., m, n)) –

    Matrix.

Returns

(array of shape (..., n, m)) Adjoint of x.

Equivalent JAX syntax

This function is equivalent to x.mT.conj().

Examples

>>> dq.fock(2, 0)
Array([[1.+0.j],
       [0.+0.j]], dtype=complex64)
>>> dq.dag(dq.fock(2, 0))
Array([[1.-0.j, 0.-0.j]], dtype=complex64)