Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Amintor Dusko <87949283+AmintorDusko@users.noreply.github.com>
  • Loading branch information
maliasadi and AmintorDusko authored Sep 12, 2023
1 parent 27d1e16 commit 10085b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ option(BUILD_BENCHMARKS "Enable cpp benchmarks" OFF)
# Backend
set(PL_BACKEND "lightning_qubit" CACHE STRING "PennyLane Lightning backend")

# Python bindings are not supported with building multiple backend devices
# Python bindings are not supported while building multiple backend devices
list(LENGTH PL_BACKEND PL_BACKEND_LEN)
if ((${PL_BACKEND_LEN} GREATER 1) AND ENABLE_PYTHON)
message(FATAL_ERROR "You cannot build ${PL_BACKEND} simulators with ENABLE_PYTHON")
message(FATAL_ERROR "Lightning does not provide Python support for a multiple backends build. Requested backends: ${PL_BACKEND}")
endif()

# Print PL_BACKEND
Expand Down
2 changes: 1 addition & 1 deletion cmake/support_simulators.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ MACRO(FIND_AND_ADD_SIMULATOR)
if (${BACKEND} IN_LIST SIMULATORS_LIST)
add_subdirectory(${BACKEND})
else()
message("Could not find the required backend. Options found are:")
message("Could not find the requested backend. Options found are:")
FOREACH(SIMULATOR ${SIMULATORS_LIST})
message(" * " ${SIMULATOR})
ENDFOREACH()
Expand Down

0 comments on commit 10085b3

Please sign in to comment.