Skip to content

Commit 5b1e56b

Browse files
changes requested
1 parent f2a180d commit 5b1e56b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/simulator_cuda.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class SimulatorCUDA final {
375375
IndicesL<G> d_i(d_ws);
376376

377377
ApplyGateL_Kernel<G><<<CreateGrid(blocks), threads>>>(
378-
(fp_type*)d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis,
378+
(fp_type*) d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis,
379379
1 << num_effective_qs, state.get());
380380
}
381381

@@ -408,7 +408,7 @@ class SimulatorCUDA final {
408408
IndicesH<G> d_i(d_ws);
409409

410410
ApplyControlledGateH_Kernel<G><<<CreateGrid(blocks), threads>>>(
411-
(fp_type*)d_ws, d_i.xss, d_i.ms, num_aqs + 1, cvalsh, state.get());
411+
(fp_type*) d_ws, d_i.xss, d_i.ms, num_aqs + 1, cvalsh, state.get());
412412
}
413413

414414
template <unsigned G>
@@ -433,7 +433,7 @@ class SimulatorCUDA final {
433433
IndicesL<G> d_i(d_ws);
434434

435435
ApplyControlledGateLH_Kernel<G><<<CreateGrid(blocks), threads>>>(
436-
(fp_type*)d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis, d.num_aqs + 1,
436+
(fp_type*) d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis, d.num_aqs + 1,
437437
d.cvalsh, 1 << d.num_effective_qs, state.get());
438438
}
439439

@@ -459,7 +459,7 @@ class SimulatorCUDA final {
459459
IndicesLC<G> d_i(d_ws);
460460

461461
ApplyControlledGateL_Kernel<G><<<CreateGrid(blocks), threads>>>(
462-
(fp_type*)d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis, d_i.cis,
462+
(fp_type*) d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis, d_i.cis,
463463
d.num_aqs + 1, d.cvalsh, 1 << d.num_effective_qs,
464464
1 << (5 - d.remaining_low_cqs), state.get());
465465
}
@@ -494,7 +494,7 @@ class SimulatorCUDA final {
494494
IndicesH<G> d_i(d_ws);
495495

496496
ExpectationValueH_Kernel<G><<<CreateGrid(blocks), threads>>>(
497-
(fp_type*)d_ws, d_i.xss, d_i.ms, num_iterations_per_block, state.get(),
497+
(fp_type*) d_ws, d_i.xss, d_i.ms, num_iterations_per_block, state.get(),
498498
Plus<double>(), d_res1);
499499

500500
double mul = size == 1 ? 0.5 : 1.0;
@@ -532,7 +532,7 @@ class SimulatorCUDA final {
532532
IndicesL<G> d_i(d_ws);
533533

534534
ExpectationValueL_Kernel<G><<<CreateGrid(blocks), threads>>>(
535-
(fp_type*)d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis,
535+
(fp_type*) d_ws, d_i.xss, d_i.ms, d_i.qis, d_i.tis,
536536
num_iterations_per_block, state.get(), Plus<double>(), d_res1);
537537

538538
double mul = double(1 << (5 + num_effective_qs - G)) / 32;

0 commit comments

Comments
 (0)