From 734634a494ed1519fcae27eebab216aa69269313 Mon Sep 17 00:00:00 2001 From: gonfeco Date: Tue, 7 Nov 2023 11:16:44 +0100 Subject: [PATCH] minor corrections --- tnbs/BTC_04_PH/PH/ansatzes.py | 5 +++-- tnbs/BTC_04_PH/PH/vqe_step.json | 28 ++++++++++------------------ 2 files changed, 13 insertions(+), 20 deletions(-) diff --git a/tnbs/BTC_04_PH/PH/ansatzes.py b/tnbs/BTC_04_PH/PH/ansatzes.py index 56813ec..2f3d467 100644 --- a/tnbs/BTC_04_PH/PH/ansatzes.py +++ b/tnbs/BTC_04_PH/PH/ansatzes.py @@ -496,7 +496,7 @@ def run_ansatz(**configuration): logger.info("Ansatz will be submited to QLM") solv_ansatz.submit() solve_ansatz_time = solv_ansatz.solve_ansatz_time - return None, None, None, None + return None def getting_job(**configuration): """ @@ -618,4 +618,5 @@ def getting_job(**configuration): state = getting_job(**vars(args)) else: output = run_ansatz(**vars(args)) - print(output["state"]) + if output is not None: + print(output["state"]) diff --git a/tnbs/BTC_04_PH/PH/vqe_step.json b/tnbs/BTC_04_PH/PH/vqe_step.json index 9a540e8..3845eb7 100644 --- a/tnbs/BTC_04_PH/PH/vqe_step.json +++ b/tnbs/BTC_04_PH/PH/vqe_step.json @@ -1,12 +1,11 @@ [ { "save": [true], - "base_fn" : ["Test/ansatz_simple01_nqubits_12_depth_1_qpu_ansatz_c"], + "base_fn" : ["Test/ansatz_simple01_nqubits_12_depth_3_qpu_ansatz_c"], "nb_shots": [null], - "truncation": [null], + "truncation": [1e-5], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -14,8 +13,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -23,8 +21,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -32,8 +29,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -41,8 +37,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -50,8 +45,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -59,8 +53,7 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] }, { "save": [true], @@ -68,7 +61,6 @@ "nb_shots": [null], "truncation": [null], "t_inv": [true], - "qpu_ph": ["c"], - "save": [false] + "qpu_ph": ["c"] } ]