unitaria.utilΒΆ

Description

Classes

LogReduceMeta(name, bases, ns, *[, default])

Metaclass for simplifying use of nodes implementing binary operations.

cached_property(func)

Clone of functools.cached_property.

Functions

is_ipython()

is_unitary(U[, tol])

Check if a matrix is unitary within a given tolerance.

logreduce(f, values)

poly_sup_norm(poly[, range])

Computes the sup norm of a polynomial in the range [-1, 1]

sample_bound(precision, failure_probability)

Number of samples needed in Monte Carlo amplitude estimation