pair: struct; QPanda::Variational::impl
implementation class for the var. Impl only includes classical operator with fixed number of arguments. More...<details-struct_q_panda_1_1_variational_1_1impl>
cpp
#include <var.h>
struct impl { // fields
MatrixXd
val<doxid-struct_q_panda_1_1_variational_1_1impl_1a192110dfe5013d1fd808aab4f262e241>
; boolm_is_differentiable<doxid-struct_q_panda_1_1_variational_1_1impl_1ad7bb7cb00dd81ad05e29767d35ae2c4a>
;op_type<doxid-namespace_q_panda_1_1_variational_1a48cf3e66870553a1904112cfce0fd810>
op<doxid-struct_q_panda_1_1_variational_1_1impl_1a48c4c2d47ded74e71bf3615945943e3b>
; std::vector<var<doxid-class_q_panda_1_1_variational_1_1var>
>children<doxid-struct_q_panda_1_1_variational_1_1impl_1ab9026462afdd43c59bfe64fff032691f>
; std::vector<std::weak_ptr<impl>>parents<doxid-struct_q_panda_1_1_variational_1_1impl_1a9cd6c23efd4e542bb77b9ad85f1e9529>
; MatrixXdm_prob<doxid-struct_q_panda_1_1_variational_1_1impl_1af9668071cafbb85c671d03ef55065c87>
;// construction
impl<doxid-struct_q_panda_1_1_variational_1_1impl_1ae616bd11074f0d644e25f20b55153de7>
(const MatrixXd&);
impl<doxid-struct_q_panda_1_1_variational_1_1impl_1ad7ccd00d8500101df6fd7be1ba315a60>
(const MatrixXd&, bool isDifferentiable );
impl<doxid-struct_q_panda_1_1_variational_1_1impl_1a760c425eded6d5a3e8e8e53601abc914>
(op_type<doxid-namespace_q_panda_1_1_variational_1a48cf3e66870553a1904112cfce0fd810>
, const std::vector<var<doxid-class_q_panda_1_1_variational_1_1var>
>&);
};
// direct descendants
struct impl_qop_pmeasure<doxid-struct_q_panda_1_1_variational_1_1impl__qop__pmeasure>
; struct impl_qop_pmeasure_real_chip<doxid-struct_q_panda_1_1_variational_1_1impl__qop__pmeasure__real__chip>
; struct impl_stack<doxid-struct_q_panda_1_1_variational_1_1impl__stack>
; struct impl_subscript<doxid-struct_q_panda_1_1_variational_1_1impl__subscript>
; struct impl_vqp<doxid-struct_q_panda_1_1_variational_1_1impl__vqp>
; struct impl_vqp_real_chip<doxid-struct_q_panda_1_1_variational_1_1impl__vqp__real__chip>
;
implementation class for the var. Impl only includes classical operator with fixed number of arguments.
pair: variable; val
cpp
MatrixXd val
Internal value.
pair: variable; m_is_differentiable
cpp
bool m_is_differentiable
Placeholder/Variable.
pair: variable; op
cpp
op_type<doxid-namespace_q_panda_1_1_variational_1a48cf3e66870553a1904112cfce0fd810>
op
Operator type.
pair: variable; children
cpp
std::vector<var<doxid-class_q_panda_1_1_variational_1_1var>
> children
Childrens. For example, c = a + b. c is a and b's parent, a and b are c's children.
pair: variable; parents
cpp
std::vector<std::weak_ptr<impl>> parents
Parents. For example, c = a + b. c is a and b's parent, a and b are c's children.
pair: variable; m_prob
cpp
MatrixXd m_prob
Internal value.
pair: function; impl
cpp
impl(const MatrixXd&)
Construct from a Eigen matrix.
pair: function; impl
cpp
impl(op_type<doxid-namespace_q_panda_1_1_variational_1a48cf3e66870553a1904112cfce0fd810>
, const std::vector<var<doxid-class_q_panda_1_1_variational_1_1var>
>&)
Construct from a operator.