Skip to content

Commit 08def47

Browse files
committed
minor
1 parent f989bb4 commit 08def47

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/parametrized_gates.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ function parametrized_hermitian_gates()
99
return exp(im*A*t)
1010
end
1111

12-
num_qubits = 3
12+
num_qubits = 2
1313
A_i = 1 # 1 <= i,j <= num_qubits
14-
A_j = 3 # 1 <= i,j <= num_qubits
14+
A_j = 4 # 1 <= i,j <= num_qubits
1515
t = 2.5
1616

1717
return Dict{String, Any}(
1818
"num_qubits" => num_qubits,
19-
"maximum_depth" => 8,
20-
# "elementary_gates" => ["RX_1", "RX_2", "CRX_1_2", "CRX_2_1", "CNot_1_2", "CNot_2_1", "Identity"],
21-
"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"],
19+
"maximum_depth" => 10,
20+
"elementary_gates" => ["RX_1", "RX_2", "CRX_1_2", "CRX_2_1", "CNot_1_2", "CNot_2_1", "Identity"],
21+
# "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"],
2222
"target_gate" => target_gate(num_qubits, A_i, A_j, t),
2323
"objective" => "minimize_depth",
2424
"decomposition_type" => "exact_optimal",

examples/run_examples.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ include("5qubit_gates.jl")
1313
include("parametrized_gates.jl")
1414
include("decompose_all_gates.jl")
1515

16-
decompose_gates = ["parametrized_hermitian_gates"]
16+
# decompose_gates = ["iSwap"]
1717

1818
#----------------------------------------------#
1919
# Quantum Circuit Optimization model #

0 commit comments

Comments
 (0)