Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
BreakBeforeBraces: Linux
BreakBeforeInlineASMColon: OnlyMultiline
BreakBeforeTemplateCloser: true
BreakBeforeTernaryOperators: true
BreakBinaryOperations: Never
BreakConstructorInitializers: BeforeColon
Expand Down
3 changes: 2 additions & 1 deletion include/qiskit/addon/sqd/postselection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ class MatchesRightLeftHamming
/// bitstrings, weights, Qiskit::addon::sqd::MatchesRightLeftHamming(1, 2)
/// );
template <
typename BitstringVectorType, typename WeightVectorType, typename CallableType>
typename BitstringVectorType, typename WeightVectorType, typename CallableType
>
std::pair<BitstringVectorType, WeightVectorType> postselect_bitstrings(
const BitstringVectorType &bitstrings, const WeightVectorType &weights,
CallableType filter_function
Expand Down
6 changes: 4 additions & 2 deletions include/qiskit/addon/sqd/subsampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ namespace sqd
/// @tparam RNGType Type of random number generator.
template <
typename BatchVectorType, typename BitstringVectorType, typename WeightVectorType,
typename RNGType>
typename RNGType
>
void subsample(
BatchVectorType &batch, const BitstringVectorType &bitstrings,
const WeightVectorType &weights, unsigned int samples_per_batch, RNGType &rng
Expand Down Expand Up @@ -150,7 +151,8 @@ BitstringVectorType subsample(
// NOLINTBEGIN(bugprone-easily-swappable-parameters)
template <
typename BatchesVectorType, typename BitstringVectorType, typename WeightVectorType,
typename RNGType>
typename RNGType
>
void subsample_multiple_batches(
BatchesVectorType &batches, const BitstringVectorType &bitstrings,
const WeightVectorType &weights, unsigned int samples_per_batch,
Expand Down