.. index:: pair: struct; QPanda::Variational::impl_vqp_real_chip .. _doxid-struct_q_panda_1_1_variational_1_1impl__vqp__real__chip: struct QPanda::Variational::impl_vqp_real_chip ============================================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct impl_vqp_real_chip: public :ref:`QPanda::Variational::impl` { // construction :target:`impl_vqp_real_chip`( :ref:`VariationalQuantumCircuit`, :ref:`PauliOperator`, :ref:`QuantumMachine`*, std::vector<:ref:`Qubit`*>, int shots ); :target:`impl_vqp_real_chip`( :ref:`VariationalQuantumCircuit`, :ref:`PauliOperator`, :ref:`QuantumMachine`*, std::map`*>, int shots ); // methods double :target:`_get_gradient`(:ref:`var` _var); double :target:`_get_gradient_one_term`( :ref:`var` _var, QTerm ); double :target:`_get_expectation_one_term`( :ref:`QCircuit`, QTerm ); double :target:`_get_expectation`(); }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // fields MatrixXd :ref:`val`; bool :ref:`m_is_differentiable`; :ref:`op_type` :ref:`op`; std::vector<:ref:`var`> :ref:`children`; std::vector`>> :ref:`parents`; MatrixXd :ref:`m_prob`;