QNLP/modules/simulator/IntelSimulator.cpp line 168: undefined reference to variable qubitIndex.
Undefined reference arises when the QNLP library is built with GateLogging enabled due to qubitIndex being undeclared. Variable should be qubit_idx to remedy this.
To reproduce
Steps to reproduce the behavior:
Build application using Cmake with -DENABLE_LOGGING=1 to enable Gate Logging functionality.
make
See undefined reference error for QNLP/modules/simulator/IntelSimulator.cpp line 168
Expected behavior
Expected behaviour would be for this compile time error to not arise; instead the variable qubit_idx passed into the applyGatePhaseShift on line 156 should replace the undefined variable qubitIndex on line 168.
Description
QNLP/modules/simulator/IntelSimulator.cpp
line 168: undefined reference to variablequbitIndex
.Undefined reference arises when the QNLP library is built with GateLogging enabled due to
qubitIndex
being undeclared. Variable should bequbit_idx
to remedy this.To reproduce
Steps to reproduce the behavior:
-DENABLE_LOGGING=1
to enable Gate Logging functionality.QNLP/modules/simulator/IntelSimulator.cpp
line 168Expected behavior
Expected behaviour would be for this compile time error to not arise; instead the variable
qubit_idx
passed into theapplyGatePhaseShift
on line 156 should replace the undefined variablequbitIndex
on line 168.