Skip to content

Commit 4df4b84

Browse files
[Quantum] Add job cost estimate (Azure#16339)
* copy existin api-version * update api-version ref * new feature
1 parent 1b64fac commit 4df4b84

File tree

10 files changed

+1262
-0
lines changed

10 files changed

+1262
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
4+
"resourceGroupName": "quantumResourcegroup",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"workspaceName": "quantumworkspace1"
7+
},
8+
"responses": {
9+
"204": {}
10+
}
11+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"parameters": {
3+
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
4+
"resourceGroupName": "quantumResourcegroup",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"workspaceName": "quantumworkspace1"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"name": "tabu-demo",
12+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
13+
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
14+
"cancellationTime": null,
15+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
16+
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
17+
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
18+
"errorData": null,
19+
"inputDataFormat": "microsoft.qio.v2",
20+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
21+
"inputParams": {
22+
"params": {
23+
"sweeps": 300
24+
}
25+
},
26+
"metadata": null,
27+
"outputDataFormat": "microsoft.qio-results.v2",
28+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
29+
"providerId": "microsoft",
30+
"status": "Succeeded",
31+
"target": "microsoft.tabu.cpu",
32+
"costEstimate": {
33+
"currency": "USD",
34+
"events": [
35+
{
36+
"dimensionId": "jobhours",
37+
"dimensionName": "Job Hours",
38+
"measureUnit": "Hours",
39+
"amountBilled": 0.5,
40+
"amountConsumed": 0.5,
41+
"unitPrice": 0.01
42+
}
43+
],
44+
"estimatedTotal": 0.005
45+
},
46+
"tags": [
47+
"tag1",
48+
"new"
49+
]
50+
}
51+
}
52+
}
53+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"parameters": {
3+
"resourceGroupName": "quantumResourcegroup",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"workspaceName": "quantumworkspace1"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"name": "tabu-demo",
13+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
14+
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
15+
"cancellationTime": null,
16+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
17+
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
18+
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
19+
"errorData": null,
20+
"inputDataFormat": "microsoft.qio.v2",
21+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
22+
"inputParams": {
23+
"params": {
24+
"sweeps": 300
25+
}
26+
},
27+
"metadata": null,
28+
"outputDataFormat": "microsoft.qio-results.v2",
29+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
30+
"providerId": "microsoft",
31+
"status": "Succeeded",
32+
"target": "microsoft.tabu.cpu",
33+
"tags": [
34+
"tag1"
35+
]
36+
},
37+
{
38+
"id": "ab1aeddd-f191-4884-b8a9-13cdfa020fc6",
39+
"name": "Superposition: true",
40+
"beginExecutionTime": "2020-09-18T23:25:45.781389Z",
41+
"cancellationTime": null,
42+
"containerUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6?sv=2019-02-02&sr=c&sig=xhQtyt7Forj1HtpEkBTJTXAMTuuEvN0dTssv2OZlUNk%3D&se=2020-09-25T23%3A25%3A32Z&sp=rcw",
43+
"creationTime": "2020-09-18T23:25:33.5541484+00:00",
44+
"endExecutionTime": "2020-09-18T23:25:53.911837Z",
45+
"errorData": null,
46+
"inputDataFormat": "microsoft.qci-ir.v1",
47+
"inputDataUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/inputData?sv=2019-02-02&sr=b&sig=nDMUBPqNskFDLq591NGBE4nVnCiQhXYQBhSiU4xseVY%3D&se=2020-09-19T00%3A25%3A33Z&sp=rcw",
48+
"inputParams": {
49+
"shots": "10"
50+
},
51+
"metadata": {
52+
"entryPointInput": "true",
53+
"outputMappingBlobUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/mappingData?sv=2019-02-02&sr=b&sig=k6Gvd396GUtBxJasU9muSzkYXPQb8utASRSz932MFiw%3D&se=2020-09-19T00%3A25%3A33Z&sp=rcw"
54+
},
55+
"outputDataFormat": "microsoft.quantum-results.v1",
56+
"outputDataUri": "https://storage.blob.core.windows.net/quantum-job-ab1aeddd-f191-4884-b8a9-13cdfa020fc6/outputData?sv=2019-02-02&sr=c&sig=xhQtyt7Forj1HtpEkBTJTXAMTuuEvN0dTssv2OZlUNk%3D&se=2020-09-25T23%3A25%3A32Z&sp=rcw",
57+
"providerId": "qci",
58+
"status": "Succeeded",
59+
"target": "qci.simulator",
60+
"tags": [
61+
"tag2"
62+
]
63+
}
64+
],
65+
"nextLink": null
66+
}
67+
}
68+
}
69+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"parameters": {
3+
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
4+
"resourceGroupName": "quantumResourcegroup",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"workspaceName": "quantumworkspace1",
7+
"patchJob": [
8+
{
9+
"op": "add",
10+
"path": "/tags/-",
11+
"value": "new_tag"
12+
},
13+
{
14+
"op": "remove",
15+
"path": "/tags/0"
16+
}
17+
]
18+
},
19+
"responses": {
20+
"200": {
21+
"body": {
22+
"name": "tabu-demo",
23+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
24+
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
25+
"cancellationTime": null,
26+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
27+
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
28+
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
29+
"errorData": null,
30+
"inputDataFormat": "microsoft.qio.v2",
31+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
32+
"inputParams": {
33+
"params": {
34+
"sweeps": 300
35+
}
36+
},
37+
"metadata": null,
38+
"outputDataFormat": "microsoft.qio-results.v2",
39+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
40+
"providerId": "microsoft",
41+
"status": "Succeeded",
42+
"target": "microsoft.tabu.cpu",
43+
"tags": [
44+
"tag2",
45+
"new_tag"
46+
]
47+
}
48+
},
49+
"204": {}
50+
}
51+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"parameters": {
3+
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
4+
"resourceGroupName": "quantumResourcegroup",
5+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
6+
"workspaceName": "quantumworkspace1",
7+
"job": {
8+
"name": "tabu-demo",
9+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
10+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
11+
"inputDataFormat": "microsoft.qio.v2",
12+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
13+
"inputParams": {
14+
"params": {
15+
"sweeps": 300
16+
}
17+
},
18+
"outputDataFormat": "microsoft.qio-results.v2",
19+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
20+
"providerId": "microsoft",
21+
"target": "microsoft.tabu.cpu",
22+
"tags": [
23+
"tag1",
24+
"tag_2"
25+
]
26+
}
27+
},
28+
"responses": {
29+
"200": {
30+
"body": {
31+
"name": "tabu-demo",
32+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
33+
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
34+
"cancellationTime": null,
35+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
36+
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
37+
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
38+
"errorData": null,
39+
"inputDataFormat": "microsoft.qio.v2",
40+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
41+
"inputParams": {
42+
"params": {
43+
"sweeps": 300
44+
}
45+
},
46+
"metadata": null,
47+
"outputDataFormat": "microsoft.qio-results.v2",
48+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
49+
"providerId": "microsoft",
50+
"status": "Succeeded",
51+
"target": "microsoft.tabu.cpu",
52+
"tags": [
53+
"tag1",
54+
"tag_2"
55+
]
56+
}
57+
},
58+
"201": {
59+
"body": {
60+
"name": "tabu-demo",
61+
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
62+
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
63+
"cancellationTime": null,
64+
"containerUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
65+
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
66+
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
67+
"errorData": null,
68+
"inputDataFormat": "microsoft.qio.v2",
69+
"inputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/inputData?sv=2019-02-02&sr=b&sig=MtgxZEmrCv%2FmeQWFUe6%2Bx9tViSrhxSxYr6euGGHtWnw%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
70+
"inputParams": {
71+
"params": {
72+
"sweeps": 300
73+
}
74+
},
75+
"metadata": null,
76+
"outputDataFormat": "microsoft.qio-results.v2",
77+
"outputDataUri": "https://storage.blob.core.windows.net/job-a0f7adb6-0378-11eb-9463-2816a847b9a3/rawOutputData?sv=2019-02-02&sr=c&sig=mhbf4fluypvLtgXwN5a7iWMygL6b9ojM4EnCC%2F8BZBg%3D&se=2020-10-01T11%3A57%3A01Z&sp=rcw",
78+
"providerId": "microsoft",
79+
"status": "Succeeded",
80+
"target": "microsoft.tabu.cpu",
81+
"tags": [
82+
"tag1",
83+
"tag_2"
84+
]
85+
}
86+
}
87+
}
88+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
"parameters": {
3+
"resourceGroupName": "quantumResourcegroup",
4+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
5+
"workspaceName": "quantumworkspace1"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "Microsoft",
13+
"currentAvailability": "Available",
14+
"targets": [
15+
{
16+
"id": "microsoft.paralleltempering-parameterfree.cpu",
17+
"currentAvailability": "Available",
18+
"averageQueueTime": 0,
19+
"statusPage": null
20+
},
21+
{
22+
"id": "microsoft.paralleltempering.cpu",
23+
"currentAvailability": "Available",
24+
"averageQueueTime": 0,
25+
"statusPage": null
26+
},
27+
{
28+
"id": "microsoft.simulatedannealing-parameterfree.cpu",
29+
"currentAvailability": "Available",
30+
"averageQueueTime": 0,
31+
"statusPage": null
32+
},
33+
{
34+
"id": "microsoft.simulatedannealing.cpu",
35+
"currentAvailability": "Available",
36+
"averageQueueTime": 0,
37+
"statusPage": null
38+
},
39+
{
40+
"id": "microsoft.tabu-parameterfree.cpu",
41+
"currentAvailability": "Available",
42+
"averageQueueTime": 0,
43+
"statusPage": null
44+
},
45+
{
46+
"id": "microsoft.tabu.cpu",
47+
"currentAvailability": "Available",
48+
"averageQueueTime": 0,
49+
"statusPage": null
50+
},
51+
{
52+
"id": "microsoft.simulatedannealing-parameterfree.fpga",
53+
"currentAvailability": "Available",
54+
"averageQueueTime": 0,
55+
"statusPage": null
56+
},
57+
{
58+
"id": "microsoft.simulatedannealing.fpga",
59+
"currentAvailability": "Available",
60+
"averageQueueTime": 0,
61+
"statusPage": null
62+
}
63+
]
64+
},
65+
{
66+
"id": "ionq",
67+
"currentAvailability": "Available",
68+
"targets": [
69+
{
70+
"id": "ionq.qpu",
71+
"currentAvailability": "Available",
72+
"averageQueueTime": 1679,
73+
"statusPage": "https://status.ionq.co"
74+
},
75+
{
76+
"id": "ionq.simulator",
77+
"currentAvailability": "Available",
78+
"averageQueueTime": 0,
79+
"statusPage": "https://status.ionq.co"
80+
}
81+
]
82+
}
83+
],
84+
"nextLink": null
85+
}
86+
}
87+
}
88+
}

0 commit comments

Comments
 (0)