# VariationalForm¶

class VariationalForm[source]

Bases : abc.ABC

Base class for VariationalForms.

This method should initialize the module and use an exception if a component of the module is not available.

Methods

 construct_circuit Construct the variational form, given its parameters. get_entangler_map returns entangler map validate_entangler_map validate entangler map

Attributes

num_parameters

Number of parameters of the variational form.

Renvoie

An integer indicating the number of parameters.

Type renvoyé

int

num_qubits

Number of qubits of the variational form.

Renvoie

An integer indicating the number of qubits.

Type renvoyé

int

parameter_bounds

Parameter bounds.

Renvoie

A list of pairs indicating the bounds, as (lower, upper). None indicates an unbounded parameter in the corresponding direction. If None is returned, problem is fully unbounded.

Type renvoyé

list

preferred_init_points

Return preferred init points.

If an initial state is provided then the variational form may provide back this set of parameters which when used on the variational form should result in the overall state being that defined by the initial state

setting
support_parameterized_circuit

Whether or not the sub-class support parameterized circuit.

Renvoie

indicate the sub-class support parameterized circuit

Type renvoyé

boolean