class QPanda::Variational::var

Overview

The class denotes the variable. More…

Detailed Documentation

The class denotes the variable.

Construction

Construct a new var object by the impl object.

Construct a new var object by a double.

Construct a new var object by a Eigen matrix.

Construct a new var object by the operator type and children.

Parameters:

op

operator type

children

children of the operator. For example, c = a + b. c is a and b’s parent, a and b are c’s children

move constructor of var

Methods

Returns:

var&