peropq.exact_norm¶
Classes¶
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.UnconstrainedVariationalUnitaryClass representing a variational unitary which is optimized through an exact evaluation of the norm by means of exact diagonalization.
- Parameters:
hamiltonian (peropq.hamiltonian.Hamiltonian)
number_of_layer (int)
time (float)
number_of_qubits (int)
- 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