class QPanda::HHLAlg

Overview

#include <HHL.h>

class HHLAlg
{
public:
    // construction

    HHLAlg(
        const QStat& A,
        const std::vector<double>& b,
        QuantumMachine* qvm
        );

    // methods

    QCircuit get_hhl_circuit(uint32_t precision_cnt = 0);
    std::string check_QPE_result();
    const double& get_amplification_factor() const;
    static void expand_linear_equations(QStat& A, std::vector<double>& b);
};

Detailed Documentation

Methods

static void expand_linear_equations(QStat& A, std::vector<double>& b)

Extending linear equations to N dimension, N=2^n.

Parameters:

QStat&

the source matrix, which will be extend to N*N, N=2^n

std::vector<double>&

the source vector b, which will be extend to 2^n

Returns: