Skip to content

Commit

Permalink
Fix bug in DensityMatrixThrust apply_y (Qiskit#771)
Browse files Browse the repository at this point in the history
Fixes a bug introduced in Qiskit#760
  • Loading branch information
chriseclectic committed Jun 1, 2020
1 parent 7dcbffc commit fea1472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulators/density_matrix/densitymatrix_thrust.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,10 @@ class DensityY : public GateFuncBase
q2 = pV[offsets[2]+i0];
q3 = pV[offsets[3]+i0];

pV[offsets[0]+i0] = q0;
pV[offsets[0]+i0] = q3;
pV[offsets[1]+i0] = -q2;
pV[offsets[2]+i0] = -q1;
pV[offsets[3]+i0] = q3;
pV[offsets[3]+i0] = q0;
return 0.0;
}

Expand Down

0 comments on commit fea1472

Please sign in to comment.