Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
harshangrjn committed Aug 6, 2023
1 parent f989bb4 commit 08def47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions examples/parametrized_gates.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ function parametrized_hermitian_gates()
return exp(im*A*t)
end

num_qubits = 3
num_qubits = 2
A_i = 1 # 1 <= i,j <= num_qubits
A_j = 3 # 1 <= i,j <= num_qubits
A_j = 4 # 1 <= i,j <= num_qubits
t = 2.5

return Dict{String, Any}(
"num_qubits" => num_qubits,
"maximum_depth" => 8,
# "elementary_gates" => ["RX_1", "RX_2", "CRX_1_2", "CRX_2_1", "CNot_1_2", "CNot_2_1", "Identity"],
"elementary_gates" => ["RX_1", "RX_2", "RX_3", "CRX_1_2", "CRX_2_1", "CRX_2_3", "CRX_3_2", "CNot_1_2", "CNot_2_1", "CNot_2_3", "CNot_3_2", "Identity"],
"maximum_depth" => 10,
"elementary_gates" => ["RX_1", "RX_2", "CRX_1_2", "CRX_2_1", "CNot_1_2", "CNot_2_1", "Identity"],
# "elementary_gates" => ["RX_1", "RX_2", "RX_3", "CRX_1_2", "CRX_2_1", "CRX_2_3", "CRX_3_2", "CNot_1_2", "CNot_2_1", "CNot_2_3", "CNot_3_2", "Identity"],
"target_gate" => target_gate(num_qubits, A_i, A_j, t),
"objective" => "minimize_depth",
"decomposition_type" => "exact_optimal",
Expand Down
2 changes: 1 addition & 1 deletion examples/run_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ include("5qubit_gates.jl")
include("parametrized_gates.jl")
include("decompose_all_gates.jl")

decompose_gates = ["parametrized_hermitian_gates"]
# decompose_gates = ["iSwap"]

#----------------------------------------------#
# Quantum Circuit Optimization model #
Expand Down

0 comments on commit 08def47

Please sign in to comment.