From 08def471e5c44ab72ccf910024ba3b38b975626c Mon Sep 17 00:00:00 2001 From: harshangrjn Date: Sun, 6 Aug 2023 10:08:49 -0600 Subject: [PATCH] minor --- examples/parametrized_gates.jl | 10 +++++----- examples/run_examples.jl | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/parametrized_gates.jl b/examples/parametrized_gates.jl index a34fdd8..9591240 100644 --- a/examples/parametrized_gates.jl +++ b/examples/parametrized_gates.jl @@ -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", diff --git a/examples/run_examples.jl b/examples/run_examples.jl index 0621859..4fbb08d 100644 --- a/examples/run_examples.jl +++ b/examples/run_examples.jl @@ -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 #