Skip to main content

Dagger

Function Dagger 

Source
pub fn Dagger(expr: UnitaryExpression) -> UnitaryExpression
Expand description

Apply the conjugate transpose (dagger / adjoint) to a unitary expression.

For any unitary $U$ this produces $U^\dagger$. Use this transformer to obtain the inverse of any gate without defining a separate gate function; for example, Dagger(SGate(2)) gives $S^\dagger$ and Dagger(TGate(2)) gives $T^\dagger$.