peropq.exact_norm

Classes

ExactUnitary

Class representing a variational unitary which is optimized through an exact evaluation of the norm by means of exact diagonalization.

Module Contents

class peropq.exact_norm.ExactUnitary(hamiltonian, number_of_layer, time, number_of_qubits)

Bases: peropq.unconstrained_variational_unitary.UnconstrainedVariationalUnitary

Class representing a variational unitary which is optimized through an exact evaluation of the norm by means of exact diagonalization.

Parameters:
exact_diagonalization
exact_unitary
get_exact_norm(theta)

Get the exact norm.

Parameters:

theta (numpy.typing.NDArray) – variational parameter for which the norm must be evaluated

Returns:

the exact norm

Return type:

float