class QPanda::NodeSortProblemGenerator

Overview

Node Sort Problem Generator. More...

Detailed Documentation

Node Sort Problem Generator.

Methods

Set problem graph.

Parameters:

const std::vector<std::vector<double>>& problem graph

Set model parameter lamda1.

Parameters:

double lambda

Set model parameter lamda2.

Parameters:

double lambda

Set model parameter lamda3.

Parameters:

double lambda

Set arbitary cofficient.

Parameters:

double arbitary cofficient

Execute.

Get hamiltonian from the problem model.

Returns:

PauliOperator hamiltonian

See also:

PauliOperator

Get ansatz from the problem model.

Returns:

std::vector<QITE::AnsatzGate> ansatz

See also:

AnsatzGate

Get linear solver result of the problem model.

Returns:

Eigen::VectorXd linear solver result

See also:

AnsatzGate

Get the coefficient matrix.

Returns:

Eigen::MatrixXd parameters of Matirx

See also:

AnsatzGate

Get the constent term.

Returns:

Eigen::VectorXd constent term

See also:

AnsatzGate