quantum-flows 0.1.16__py3-none-any.whl → 0.1.18__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quantum_flows/quantum_flows.py +8 -8
- {quantum_flows-0.1.16.dist-info → quantum_flows-0.1.18.dist-info}/METADATA +1 -1
- quantum_flows-0.1.18.dist-info/RECORD +7 -0
- quantum_flows-0.1.16.dist-info/RECORD +0 -7
- {quantum_flows-0.1.16.dist-info → quantum_flows-0.1.18.dist-info}/LICENSE +0 -0
- {quantum_flows-0.1.16.dist-info → quantum_flows-0.1.18.dist-info}/WHEEL +0 -0
quantum_flows/quantum_flows.py
CHANGED
|
@@ -148,7 +148,7 @@ class InputData:
|
|
|
148
148
|
"ising-model",
|
|
149
149
|
"lattice",
|
|
150
150
|
"lp-model",
|
|
151
|
-
"max-
|
|
151
|
+
"max-fun-evaluations",
|
|
152
152
|
"molecule-info",
|
|
153
153
|
"operator",
|
|
154
154
|
"pub",
|
|
@@ -672,7 +672,7 @@ In case the service has been recently started please wait 5 minutes for it to be
|
|
|
672
672
|
shots=None,
|
|
673
673
|
workflow_id=None,
|
|
674
674
|
comments="",
|
|
675
|
-
|
|
675
|
+
max_fun_evaluations=None,
|
|
676
676
|
input_data=InputData(),
|
|
677
677
|
):
|
|
678
678
|
if not self._verify_user_is_authenticated():
|
|
@@ -689,10 +689,10 @@ In case the service has been recently started please wait 5 minutes for it to be
|
|
|
689
689
|
if not self.is_valid_uuid(workflow_id):
|
|
690
690
|
print("The specified workflow Id is not a valid GUID.")
|
|
691
691
|
return
|
|
692
|
-
if
|
|
693
|
-
if not isinstance(
|
|
692
|
+
if max_fun_evaluations is not None:
|
|
693
|
+
if not isinstance(max_fun_evaluations, int) or max_fun_evaluations <= 0:
|
|
694
694
|
print(
|
|
695
|
-
"The optional 'max-
|
|
695
|
+
"The optional 'max-fun-evaluations' input argument must be a positive integer."
|
|
696
696
|
)
|
|
697
697
|
return
|
|
698
698
|
try:
|
|
@@ -702,8 +702,8 @@ In case the service has been recently started please wait 5 minutes for it to be
|
|
|
702
702
|
input_data_items.append(backend)
|
|
703
703
|
input_data_labels.append("shots")
|
|
704
704
|
input_data_items.append(str(shots))
|
|
705
|
-
input_data_labels.append("max-
|
|
706
|
-
input_data_items.append(str(
|
|
705
|
+
input_data_labels.append("max-fun-evaluations")
|
|
706
|
+
input_data_items.append(str(max_fun_evaluations))
|
|
707
707
|
for input_data_label in input_data.data.keys():
|
|
708
708
|
input_data_labels.append(input_data_label)
|
|
709
709
|
content = input_data.data[input_data_label]
|
|
@@ -715,7 +715,7 @@ In case the service has been recently started please wait 5 minutes for it to be
|
|
|
715
715
|
"WorkflowId": workflow_id,
|
|
716
716
|
"Shots": shots,
|
|
717
717
|
"Comments": comments,
|
|
718
|
-
"
|
|
718
|
+
"MaxFunEvaluations": max_fun_evaluations,
|
|
719
719
|
"InputDataLabels": input_data_labels,
|
|
720
720
|
"InputDataItems": input_data_items,
|
|
721
721
|
"QiskitVersion": qiskit.__version__,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
quantum_flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
quantum_flows/quantum_flows.py,sha256=9vc6Qn0zPB6DvR0IJFaM3XbJIIqvT0_DCUn5Oa0W4to,39228
|
|
3
|
+
quantum_flows/quantum_flows.py.bck,sha256=ak5TNi4uCzuUPJn_GAQpPoH_XfaVvp85C844d8xeFbA,39179
|
|
4
|
+
quantum_flows-0.1.18.dist-info/LICENSE,sha256=IMxjvLtrzufAKrJSQ5u9vkcL3LbqJnOU8He5HXDet3Q,1077
|
|
5
|
+
quantum_flows-0.1.18.dist-info/METADATA,sha256=dwSfWnrplQobpNB3gxVBcZ3Qyh6BJ4XtaVDHG5UEug8,1063
|
|
6
|
+
quantum_flows-0.1.18.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
7
|
+
quantum_flows-0.1.18.dist-info/RECORD,,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
quantum_flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
quantum_flows/quantum_flows.py,sha256=ak5TNi4uCzuUPJn_GAQpPoH_XfaVvp85C844d8xeFbA,39179
|
|
3
|
-
quantum_flows/quantum_flows.py.bck,sha256=ak5TNi4uCzuUPJn_GAQpPoH_XfaVvp85C844d8xeFbA,39179
|
|
4
|
-
quantum_flows-0.1.16.dist-info/LICENSE,sha256=IMxjvLtrzufAKrJSQ5u9vkcL3LbqJnOU8He5HXDet3Q,1077
|
|
5
|
-
quantum_flows-0.1.16.dist-info/METADATA,sha256=2H1akrQQr0vYw0hcMJ4-0PlNky9_K1M7w6qV8MksDCk,1063
|
|
6
|
-
quantum_flows-0.1.16.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
7
|
-
quantum_flows-0.1.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|