.. index:: pair: class; QPanda::KarusError .. _doxid-class_q_panda_1_1_karus_error: class QPanda::KarusError ======================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KarusError { public: // construction :target:`KarusError`(); :target:`KarusError`(const std::vector<:ref:`QStat`>&); :target:`KarusError`( const std::vector<:ref:`QStat`>&, const std::vector& ); // methods bool :target:`has_karus_error`(); void :target:`set_unitary_probs`(std::vector& probs_vec); void :target:`get_unitary_probs`(std::vector& probs_vec) const; void :target:`set_unitary_matrices`(std::vector<:ref:`QStat`>& unitary_matrices); void :target:`get_unitary_matrices`(std::vector<:ref:`QStat`>& unitary_matrices) const; void :target:`set_karus_matrices`(std::vector<:ref:`QStat`>& karus_matrices); void :target:`get_karus_matrices`(std::vector<:ref:`QStat`>& karus_matrices) const; KarusError :target:`tensor`(const KarusError& karus_error); KarusError :target:`expand`(const KarusError& karus_error); KarusError :target:`compose`(const KarusError& karus_error); size_t :target:`get_qubit_num`() const; :ref:`KarusErrorType` :target:`get_karus_error_type`(); };