forked from eclipse/xacc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request eclipse#2 from ORNL-QCI/master
Syncing with ORNL-QCI
- Loading branch information
Showing
54 changed files
with
125 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# ******************************************************************************* | ||
# Copyright (c) 2019 UT-Battelle, LLC. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# and Eclipse Distribution License v.10 which accompany this distribution. | ||
# The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
# and the Eclipse Distribution License is available at | ||
# https://eclipse.org/org/documents/edl-v10.php | ||
# | ||
# Contributors: | ||
# Alexander J. McCaskey - initial API and implementation | ||
# *******************************************************************************/ | ||
set (LIBRARY_NAME xacc-circuit-optimizers) | ||
|
||
file (GLOB_RECURSE HEADERS *.hpp) | ||
file (GLOB SRC simple/*.cpp OptimizersActivator.cpp pulse/*.cpp gate_merge/*.cpp lnn_transform/*.cpp) | ||
|
||
# Set up dependencies to resources to track changes | ||
usFunctionGetResourceSource(TARGET ${LIBRARY_NAME} OUT SRC) | ||
# Generate bundle initialization code | ||
usFunctionGenerateBundleInit(TARGET ${LIBRARY_NAME} OUT SRC) | ||
|
||
add_library(${LIBRARY_NAME} SHARED ${SRC}) | ||
|
||
set(_bundle_name xacc_circuit_optimizers) | ||
|
||
set_target_properties(${LIBRARY_NAME} PROPERTIES | ||
# This is required for every bundle | ||
COMPILE_DEFINITIONS US_BUNDLE_NAME=${_bundle_name} | ||
# This is for convenience, used by other CMake functions | ||
US_BUNDLE_NAME ${_bundle_name} | ||
) | ||
|
||
# Embed meta-data from a manifest.json file | ||
usFunctionEmbedResources(TARGET ${LIBRARY_NAME} | ||
WORKING_DIRECTORY | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES | ||
manifest.json | ||
) | ||
|
||
target_include_directories(${LIBRARY_NAME} PUBLIC simple pulse gate_merge lnn_transform ${EIGEN_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/tpls/exprtk) | ||
target_link_libraries(${LIBRARY_NAME} xacc xacc-quantum-gate) | ||
|
||
if(APPLE) | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "@loader_path/../lib;@loader_path") | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | ||
else() | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN") | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-shared") | ||
endif() | ||
|
||
install(TARGETS ${LIBRARY_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/plugins) | ||
|
||
# Gather tests | ||
if(XACC_BUILD_TESTS) | ||
add_subdirectory(simple/tests) | ||
add_subdirectory(pulse/tests) | ||
add_subdirectory(gate_merge/tests) | ||
add_subdirectory(lnn_transform/tests) | ||
endif() | ||
|
||
add_subdirectory(qsearch) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,2 @@ | ||
# ******************************************************************************* | ||
# Copyright (c) 2019 UT-Battelle, LLC. | ||
# All rights reserved. This program and the accompanying materials | ||
# are made available under the terms of the Eclipse Public License v1.0 | ||
# and Eclipse Distribution License v.10 which accompany this distribution. | ||
# The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html | ||
# and the Eclipse Distribution License is available at | ||
# https://eclipse.org/org/documents/edl-v10.php | ||
# | ||
# Contributors: | ||
# Alexander J. McCaskey - initial API and implementation | ||
# *******************************************************************************/ | ||
set (LIBRARY_NAME xacc-circuit-optimizers) | ||
|
||
file (GLOB_RECURSE HEADERS *.hpp) | ||
file (GLOB SRC simple/*.cpp OptimizersActivator.cpp pulse/*.cpp gate_merge/*.cpp lnn_transform/*.cpp) | ||
|
||
# Set up dependencies to resources to track changes | ||
usFunctionGetResourceSource(TARGET ${LIBRARY_NAME} OUT SRC) | ||
# Generate bundle initialization code | ||
usFunctionGenerateBundleInit(TARGET ${LIBRARY_NAME} OUT SRC) | ||
|
||
add_library(${LIBRARY_NAME} SHARED ${SRC}) | ||
|
||
set(_bundle_name xacc_circuit_optimizers) | ||
|
||
set_target_properties(${LIBRARY_NAME} PROPERTIES | ||
# This is required for every bundle | ||
COMPILE_DEFINITIONS US_BUNDLE_NAME=${_bundle_name} | ||
# This is for convenience, used by other CMake functions | ||
US_BUNDLE_NAME ${_bundle_name} | ||
) | ||
|
||
# Embed meta-data from a manifest.json file | ||
usFunctionEmbedResources(TARGET ${LIBRARY_NAME} | ||
WORKING_DIRECTORY | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
FILES | ||
manifest.json | ||
) | ||
|
||
target_include_directories(${LIBRARY_NAME} PUBLIC simple pulse gate_merge lnn_transform ${EIGEN_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/tpls/exprtk) | ||
target_link_libraries(${LIBRARY_NAME} xacc xacc-quantum-gate) | ||
|
||
if(APPLE) | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "@loader_path/../lib;@loader_path") | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") | ||
else() | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES INSTALL_RPATH "$ORIGIN/../lib:$ORIGIN") | ||
set_target_properties(${LIBRARY_NAME} PROPERTIES LINK_FLAGS "-shared") | ||
endif() | ||
|
||
install(TARGETS ${LIBRARY_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/plugins) | ||
|
||
# Gather tests | ||
if(XACC_BUILD_TESTS) | ||
add_subdirectory(simple/tests) | ||
add_subdirectory(pulse/tests) | ||
add_subdirectory(gate_merge/tests) | ||
add_subdirectory(lnn_transform/tests) | ||
endif() | ||
|
||
add_subdirectory(qsearch) | ||
add_subdirectory(nlopt-optimizers) | ||
add_subdirectory(mlpack) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...pt-optimizers/tests/NLOptimizerTester.cpp → ...pt-optimizers/tests/NLOptimizerTester.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule nlopt
updated
from 000000 to 945d05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.