Sqrt#

class discopy.quantum.gates.Sqrt(name=None, dom=None, cod=None, data=None, *args, **kwargs)[source]#

Bases: Scalar

Principal square root, i.e. the one with non-negative real part. It is self-adjoint when that root is real, and conjugated by its dagger otherwise, e.g. for the square root of a negative number.

property is_self_adjoint#

Whether the root is real, i.e. the dagger is the identity.

setoid()[source]#

A square root and its dagger differ only by is_dagger.