ICHEC / QNLP

ICHEC Quantum natural language processing (QNLP) toolkit
https://ichec.github.io/QNLP
Apache License 2.0
34 stars 12 forks source link

Undefined Variable when building with GateLogging enabled in Simulator.hpp #2

Closed mylesDoyle closed 4 years ago

mylesDoyle commented 4 years ago

Description

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:

  1. Build application using Cmake with -DENABLE_LOGGING=1 to enable Gate Logging functionality.
  2. make
  3. 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.

mylesDoyle commented 4 years ago

Solved with merge #3