Skip to content

Commit

Permalink
publish task metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pmanthasf committed Jun 23, 2024
1 parent 05c3811 commit 981251b
Show file tree
Hide file tree
Showing 12 changed files with 224 additions and 237 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,241 +2,73 @@
"Benchmark Results - Hydrogen Lattice (1) - Qiskit": {
"backend_id": "qasm_simulator",
"circuit_metrics": null,
"end_time": 1716446689.389848,
"end_time": 1717343258.409556,
"group_metrics": {
"avg_create_times": [
0.003,
0.003,
0.005,
0.007,
0.011,
0.017,
0.03,
0.033
0.003
],
"avg_depths": [
8.0,
20.0,
32.0,
44.0,
56.0,
68.0,
80.0,
92.0
32.0
],
"avg_elapsed_times": [
3.401,
0.797,
0.889,
1.493,
2.045,
4.615,
12.977,
13.165
0.064
],
"avg_exec_creating_times": [
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001
],
"avg_exec_running_times": [
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001
],
"avg_exec_times": [
0.014,
0.005,
0.009,
0.017,
0.054,
0.966,
2.531,
7.762
0.004
],
"avg_exec_validating_times": [
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001,
0.001
],
"avg_fidelities": [
0.611,
0.793,
0.537,
0.674,
0.653,
0.233,
0.519,
0.465
0.81
],
"avg_hf_fidelities": [
0.708,
0.806,
0.544,
0.675,
0.653,
0.233,
0.519,
0.465
0.813
],
"avg_tr_depths": [
8.0,
14.0,
20.0,
26.0,
32.0,
38.0,
44.0,
50.0
20.0
],
"avg_tr_n2qs": [
2.0,
8.0,
18.0,
32.0,
50.0,
72.0,
98.0,
128.0
18.0
],
"avg_tr_xis": [
0.182,
0.267,
0.316,
0.348,
0.37,
0.387,
0.4,
0.41
0.316
],
"avg_xis": [
0.182,
0.19,
0.194,
0.195,
0.196,
0.197,
0.197,
0.198
0.194
],
"groups": [
"2",
"4",
"6",
"8",
"10",
"12",
"14",
"16"
"6"
],
"job_ids": [
[
"25d45202-12a3-42fd-a798-847eb549ba59",
"e66c8fb2-5a0a-4cec-aba0-c56cf04f06e7",
"b001a8d0-2b92-4a88-af4d-8e0521a538b9"
],
[
"167b77b5-5209-4505-8701-7d2196d8a1b0",
"42fe5a4f-a8b6-4796-928c-7c98b22095b7",
"169c01c7-d440-4d1b-9614-d9d7de88f282"
],
[
"51323e93-02f5-4dc4-9d4e-f397dcddca56",
"24622858-a807-4636-b1a2-70bf08503106",
"08deaac5-5fb8-4a3c-a37e-2db8dd582b45"
],
[
"dff62fde-c794-40b0-a2f2-9c0d60144252",
"17b732fa-9328-46d0-a732-d941874c5c38",
"e2761a9d-21e2-4255-b1b9-29ac9b5cc5ec"
],
[
"462a130f-5852-4aa0-a25a-54efce036d0d",
"6cd465e0-1f5f-4a2f-afbc-7c63d6076f0e",
"ec1404de-5516-4f32-b83b-438f3fd35de0"
],
[
"f4514b96-70c5-485c-9c4d-101ad88baf45",
"86b5bd9c-437d-4e0e-a371-1fb3aa2994c5",
"0122b2b4-8bad-48f5-8db5-cc45c70d5aec"
],
[
"72665528-7605-4afb-a894-b6cd2246180e",
"92487cc2-6465-4b16-8956-8826415956c5",
"bb45ecec-5ec0-4027-ad29-a0156b3051ab"
],
[
"34c323a9-7fd7-4baf-aaa6-9e000f27e61c",
"d54c9bdb-60ab-4473-aa9d-d290e8fe178e",
"e025fbb7-5a76-4ab9-a756-1ecfcaadd574"
"857d4bef-9f06-4276-b75d-324a98cc54de",
"7d75b1fc-29bd-4728-85b0-3afc259fdf22",
"6c90761a-677e-4106-80d9-6a8d8150c8cb"
]
],
"std_create_times": [
0.001,
0.0,
0.0,
0.0,
0.0,
0.001,
0.006,
0.0
],
"std_elapsed_times": [
0.1,
0.001,
0.07,
0.07,
0.217,
0.748,
2.48,
2.095
0.02
],
"std_exec_times": [
0.008,
0.0,
0.0,
0.004,
0.002,
0.012,
0.008,
0.013
0.0
],
"std_fidelities": [
0.002,
0.001,
0.218,
0.003,
0.002,
0.167,
0.004,
0.001
0.006
],
"std_hf_fidelities": [
0.001,
0.001,
0.215,
0.003,
0.002,
0.167,
0.004,
0.001
0.005
]
},
"start_time": 1716446646.455658
"start_time": 1717343258.213106
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1051,10 +1051,10 @@ def plot_results_from_data(
################################################
# RUN METHOD

MAX_QUBITS = 16
MAX_QUBITS = 8

def run(
min_qubits=2, max_qubits=16, skip_qubits=2, max_circuits=3, num_shots=10000,
min_qubits=2, max_qubits=8, skip_qubits=2, max_circuits=3, num_shots=10000,
method=1,
radius=None,
thetas_array=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
pass


RESOURCE_URL_HPC = "slurm://localhost"
RESOURCE_URL_HPC = "ssh://localhost"
WORKING_DIRECTORY = os.path.join(os.environ["HOME"], "work")

pilot_compute_description_dask = {
Expand All @@ -83,7 +83,7 @@ def start_pilot():
return dp


dask_pilot = start_pilot()
# dask_pilot = start_pilot()


# Benchmark Name
Expand Down Expand Up @@ -1080,9 +1080,9 @@ def plot_results_from_data(
################################################
# RUN METHOD

MAX_QUBITS = 16
MAX_QUBITS = 6
def run(
min_qubits=16, max_qubits=16, skip_qubits=2, max_circuits=3, num_shots=100,
min_qubits=MAX_QUBITS, max_qubits=MAX_QUBITS, skip_qubits=2, max_circuits=3, num_shots=100,
method=1,
radius=None,
thetas_array=None,
Expand Down Expand Up @@ -1873,15 +1873,22 @@ def submit_to_estimator(qc=None, num_qubits=1, unique_id=-1, parameterized=False
#################################
# MAIN

def square(x):
return x * x

# # if main, execute method
if __name__ == "__main__":
try:
k = dask_pilot.submit_task(run)
import pdb
pdb.set_trace()
print(k)
from dask.distributed import Client, LocalCluster
cluster = LocalCluster(n_workers=2, processes=True)
client = Client(cluster)
k = client.submit(run)
k.result()
# k = dask_pilot.submit_task(run)
print("Computation done....")
cluster.shutdown()

except Exception as e:
print(e)
if dask_pilot:
dask_pilot.cancel()
# if dask_pilot:
# dask_pilot.cancel()
Loading

0 comments on commit 981251b

Please sign in to comment.