Commit 11aa5ac7 authored by WrathfulSpatula's avatar WrathfulSpatula
Browse files

Qrack plugin: fixing init param key, fixing 'pragma once', removing unused CMake Eigen includes


Signed-off-by: default avatarWrathfulSpatula <stranoj@gmail.com>
parent f53c21d3
......@@ -12,8 +12,7 @@ add_library(${LIBRARY_NAME} SHARED ${SRC})
target_include_directories(${LIBRARY_NAME}
PUBLIC .
./accelerator
./accelerator/src/include
${CMAKE_SOURCE_DIR}/tpls/eigen)
./accelerator/src/include)
find_package(OpenCL)
if (OpenCL_FOUND)
......
......@@ -26,13 +26,13 @@ namespace quantum {
m_shots = params.get<int>("shots");
if (m_shots < 1)
{
xacc::error("Invalid 'shots' parameter.");
xacc::error("Invalid 'shots' parameter. (Must be >= 1.)");
}
}
if (params.keyExists<bool>("use_opencl"))
{
m_use_opencl = params.get<bool>("shots");
m_use_opencl = params.get<bool>("use_opencl");
}
if (params.keyExists<bool>("use_qunit"))
......@@ -53,6 +53,10 @@ namespace quantum {
if (params.keyExists<double>("zero_threshold"))
{
m_zero_threshold = params.get<double>("zero_threshold");
if (m_zero_threshold < 0)
{
xacc::error("Invalid 'zero_threshold' parameter. (Must be >= 0.)");
}
}
}
......
......@@ -11,7 +11,7 @@
* Thien Nguyen - initial API and implementation
* Daniel Strano - adaption from Quantum++ to Qrack
*******************************************************************************/
#pragma one
#pragma once
#include "xacc.hpp"
#include "QrackVisitor.hpp"
......
......@@ -12,7 +12,7 @@
* Daniel Strano - adaption from Quantum++ to Qrack
*******************************************************************************/
#pragma one
#pragma once
#include "Identifiable.hpp"
#include "AllGateVisitor.hpp"
#include "AcceleratorBuffer.hpp"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment