Skip to content

Commit

Permalink
tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
multiphaseCFD committed Oct 10, 2024
1 parent 85dc575 commit 0e9f1db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ class StateVectorCudaMPI final

double norm = (branch == 0) ? abs2sum0 : abs2sum1;

int parity = branch;
const int parity = static_cast<int>(branch);

PL_CUSTATEVEC_IS_SUCCESS(custatevecCollapseOnZBasis(
/* custatevecHandle_t */ handle_.get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ class StateVectorCudaManaged

double norm = (branch == 0) ? abs2sum0 : abs2sum1;

int parity = branch;
const int parity = static_cast<int>(branch);

PL_CUSTATEVEC_IS_SUCCESS(custatevecCollapseOnZBasis(
/* custatevecHandle_t */ handle_.get(),
Expand Down
2 changes: 1 addition & 1 deletion pennylane_lightning/lightning_gpu/lightning_gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def simulate(
raise qml.DeviceError("LightningGPU-MPI does not support Mid-circuit measurements.")

results = []
aux_circ = qml.tape.QuantumScript(
aux_circ = QuantumScript(

Check warning on line 517 in pennylane_lightning/lightning_gpu/lightning_gpu.py

View check run for this annotation

Codecov / codecov/patch

pennylane_lightning/lightning_gpu/lightning_gpu.py#L516-L517

Added lines #L516 - L517 were not covered by tests
circuit.operations,
circuit.measurements,
shots=[1],
Expand Down

0 comments on commit 0e9f1db

Please sign in to comment.