forked from NVIDIA/cuda-quantum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
75 lines (70 loc) · 1.99 KB
/
CMakeLists.txt
File metadata and controls
75 lines (70 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# ============================================================================ #
# Copyright (c) 2022 - 2025 NVIDIA Corporation & Affiliates. #
# All rights reserved. #
# #
# This source code and the accompanying materials are made available under #
# the terms of the Apache License 2.0 which accompanies this distribution. #
# ============================================================================ #
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-braced-scalar-init")
endif()
add_cudaq_library(OptTransforms
AddDeallocs.cpp
AggressiveEarlyInlining.cpp
ApplyControlNegations.cpp
ApplyOpSpecialization.cpp
ArgumentSynthesis.cpp
BasisConversion.cpp
CombineMeasurements.cpp
CombineQuantumAlloc.cpp
ConstPropComplex.cpp
Decomposition.cpp
DecompositionPatterns.cpp
DelayMeasurements.cpp
DeleteStates.cpp
EraseNopCalls.cpp
ExpandControlVeqs.cpp
ExpandMeasurements.cpp
FactorQuantumAlloc.cpp
GenKernelExecution.cpp
GenDeviceCodeLoader.cpp
GetConcreteMatrix.cpp
GlobalizeArrayValues.cpp
LambdaLifting.cpp
LiftArrayAlloc.cpp
LinearCtrlRelations.cpp
LoopAnalysis.cpp
LoopNormalize.cpp
LoopPeeling.cpp
LoopUnroll.cpp
LowerToCFG.cpp
LowerUnwind.cpp
Mapping.cpp
MemToReg.cpp
DependencyAnalysis.cpp
MultiControlDecomposition.cpp
ObserveAnsatz.cpp
PruneCtrlRelations.cpp
PySynthCallableBlockArgs.cpp
QuakeAddMetadata.cpp
QuakeSynthesizer.cpp
RefToVeqAlloc.cpp
RegToMem.cpp
StatePreparation.cpp
UnitarySynthesis.cpp
WiresToWiresets.cpp
WriteAfterWriteElimination.cpp
DEPENDS
OptTransformsPassIncGen
CCDialect
QuakeDialect
LINK_LIBS PUBLIC
CCDialect
MLIRIR
OptimBuilder
QuakeDialect
)
target_include_directories(OptTransforms SYSTEM
PRIVATE ${CMAKE_SOURCE_DIR}/tpls/eigen
PRIVATE ${CMAKE_SOURCE_DIR}/runtime
)