Skip to content

Commit be32c68

Browse files
committed
Version 4.1
1 parent 2f82ac3 commit be32c68

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

include/classes/circuits/engines.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,8 @@ class QEngine : public IDisplay, public IJSON {
827827
* \brief Executes the entire quantum circuit description
828828
*
829829
* \param reps Number of repetitions
830+
* \param try_sampling If possible, try to sample from the output (instead
831+
* of measuring)
830832
* \return Reference to the current instance
831833
*/
832834
virtual QEngine& execute(idx reps = 1, bool try_sampling = true) {

include/types.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,16 @@ using qram = std::vector<idx>;
156156
* \brief Variant type-matching utility for std::visit
157157
* \tparam Ts Type list
158158
*/
159-
template <class... Ts>
159+
template <typename... Ts>
160160
struct overloaded : Ts... {
161161
using Ts::operator()...;
162162
};
163163

164164
/**
165165
* \brief Template deduction rule
166+
* \tparam Ts Type list
166167
*/
167-
template <class... Ts>
168+
template <typename... Ts>
168169
overloaded(Ts...) -> overloaded<Ts...>;
169170

170171
} /* namespace qpp */

0 commit comments

Comments
 (0)