Skip to content

Commit fa932bf

Browse files
authored
Merge pull request #836 from mhucka/mhucka-fix-unused-lambda-capture
Fix "unused lambda capture" compiler warnings
2 parents 5fecece + 08a6282 commit fa932bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_quantum/core/ops/tfq_simulate_state_op.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ class TfqSimulateStateOp : public tensorflow::OpKernel {
151151

152152
// Parallel copy state vector information from qsim into tensorflow
153153
// tensors.
154-
auto copy_f = [i, nq, max_num_qubits, &output_tensor, &ss, &sv](
155-
uint64_t start, uint64_t end) {
154+
auto copy_f = [i, nq, &output_tensor, &ss, &sv](uint64_t start,
155+
uint64_t end) {
156156
uint64_t crossover = uint64_t(1) << nq;
157157
uint64_t upper = std::min(end, crossover);
158158

0 commit comments

Comments
 (0)