Skip to content

Commit 7803c09

Browse files
authored
Fix setState unused arguments (#1025)
**Context:** SetState and SetBasisState cause [failures](https://github.com/PennyLaneAI/pennylane-lightning/actions/runs/10404526771/job/28813218681?pr=834#step:7:102) in L-Kokkos tests because they have unused arguments. **Description of the Change:** Remove argument names. **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:**
1 parent 9cb2e22 commit 7803c09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

runtime/include/QuantumDevice.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ struct QuantumDevice {
165165
* @param state A state vector of size 2**len(wires)
166166
* @param wires The wire(s) the operation acts on
167167
*/
168-
virtual void SetState(DataView<std::complex<double>, 1> &state, std::vector<QubitIdType> &wires)
168+
virtual void SetState(DataView<std::complex<double>, 1> &, std::vector<QubitIdType> &)
169169
{
170170
RT_FAIL("Unsupported functionality");
171171
}
@@ -176,7 +176,7 @@ struct QuantumDevice {
176176
* @param n Prepares the basis state |n>, where n is an array of integers from the set {0, 1}
177177
* @param wires The wire(s) the operation acts on
178178
*/
179-
virtual void SetBasisState(DataView<int8_t, 1> &n, std::vector<QubitIdType> &wires)
179+
virtual void SetBasisState(DataView<int8_t, 1> &, std::vector<QubitIdType> &)
180180
{
181181
RT_FAIL("Unsupported functionality");
182182
}

0 commit comments

Comments
 (0)