Skip to content

Commit

Permalink
Merge branch 'interface-to-mtbdd' into qasm-file-renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinusVanDijk authored Jul 18, 2024
2 parents b59b280 + 7436338 commit 2709241
Show file tree
Hide file tree
Showing 24 changed files with 2,250 additions and 1,855 deletions.
34 changes: 31 additions & 3 deletions qasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,42 @@

# allow the parser to be included in other places as a library
# (without compiling eval_expr.cpp again)
add_library(qsylvan_qasm_parser)
target_sources(qsylvan_qasm_parser

#add_library(qsylvan_qasm_parser)
#target_sources(qsylvan_qasm_parser
# PRIVATE
# simple_parser.cpp
# parse_math/eval_expr.cpp
# PUBLIC
# simple_parser.h)
#
#add_executable(sim_qasm sim_qasm.c)
#target_link_libraries(sim_qasm qsylvan qsylvan_qasm_parser)


# QASM simulator with qmddd

add_library(qsylvan_qasm_parser_qmdd)
target_sources(qsylvan_qasm_parser_qmdd
PRIVATE
simple_parser.cpp
parse_math/eval_expr.cpp
PUBLIC
simple_parser.h)

add_executable(run_qasm_on_qmdd run_qasm_on_qmdd.c)
target_link_libraries(run_qasm_on_qmdd qsylvan qsylvan_qasm_parser)
target_link_libraries(run_qasm_on_qmdd qsylvan qsylvan_qasm_parser_qmdd)


# QASM simulator with mtbdd

add_library(qsylvan_qasm_parser_mtbdd)
target_sources(qsylvan_qasm_parser_mtbdd
PRIVATE
simple_parser.cpp
parse_math/eval_expr.cpp
PUBLIC
simple_parser.h)

add_executable(run_qasm_on_mtbdd run_qasm_on_mtbdd.c)
target_link_libraries(run_qasm_on_mtbdd qsylvan qsylvan_qasm_parser_mtbdd)
2 changes: 1 addition & 1 deletion qasm/QASM_to_circuit.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ BDDVAR partition(BDDVAR* qubits, int low, int high);
* PARAMETERS:
* - qubits: the circuit in which to store the barrier column
* - low: the first index of the array
* - high: the last index of the array
* - high: the last index of the array
*/
void sort(BDDVAR* qubits, int low, int high);

Expand Down
Loading

0 comments on commit 2709241

Please sign in to comment.