Skip to content

Commit

Permalink
minor corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfeco committed Nov 7, 2023
1 parent e869140 commit 734634a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 20 deletions.
5 changes: 3 additions & 2 deletions tnbs/BTC_04_PH/PH/ansatzes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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"])
28 changes: 10 additions & 18 deletions tnbs/BTC_04_PH/PH/vqe_step.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,66 @@
[
{
"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],
"base_fn" : ["Test/ansatz_simple01_nqubits_12_depth_2_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_12_depth_3_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_12_depth_4_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_14_depth_1_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_14_depth_2_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_14_depth_3_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
},
{
"save": [true],
"base_fn" : ["Test/ansatz_simple01_nqubits_14_depth_4_qpu_ansatz_c"],
"nb_shots": [null],
"truncation": [null],
"t_inv": [true],
"qpu_ph": ["c"],
"save": [false]
"qpu_ph": ["c"]
}
]

0 comments on commit 734634a

Please sign in to comment.