Skip to content

Commit

Permalink
[Quantum] Add job cost estimate (Azure#16339)
Browse files Browse the repository at this point in the history
* copy existin api-version

* update api-version ref

* new feature
  • Loading branch information
george-moussa authored Oct 11, 2021
1 parent 1b64fac commit 4df4b84
Show file tree
Hide file tree
Showing 10 changed files with 1,262 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1"
},
"responses": {
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1"
},
"responses": {
"200": {
"body": {
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
"errorData": null,
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"metadata": null,
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"status": "Succeeded",
"target": "microsoft.tabu.cpu",
"costEstimate": {
"currency": "USD",
"events": [
{
"dimensionId": "jobhours",
"dimensionName": "Job Hours",
"measureUnit": "Hours",
"amountBilled": 0.5,
"amountConsumed": 0.5,
"unitPrice": 0.01
}
],
"estimatedTotal": 0.005
},
"tags": [
"tag1",
"new"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"parameters": {
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
"errorData": null,
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"metadata": null,
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"status": "Succeeded",
"target": "microsoft.tabu.cpu",
"tags": [
"tag1"
]
},
{
"id": "ab1aeddd-f191-4884-b8a9-13cdfa020fc6",
"name": "Superposition: true",
"beginExecutionTime": "2020-09-18T23:25:45.781389Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-18T23:25:33.5541484+00:00",
"endExecutionTime": "2020-09-18T23:25:53.911837Z",
"errorData": null,
"inputDataFormat": "microsoft.qci-ir.v1",
"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",
"inputParams": {
"shots": "10"
},
"metadata": {
"entryPointInput": "true",
"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"
},
"outputDataFormat": "microsoft.quantum-results.v1",
"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",
"providerId": "qci",
"status": "Succeeded",
"target": "qci.simulator",
"tags": [
"tag2"
]
}
],
"nextLink": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1",
"patchJob": [
{
"op": "add",
"path": "/tags/-",
"value": "new_tag"
},
{
"op": "remove",
"path": "/tags/0"
}
]
},
"responses": {
"200": {
"body": {
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
"errorData": null,
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"metadata": null,
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"status": "Succeeded",
"target": "microsoft.tabu.cpu",
"tags": [
"tag2",
"new_tag"
]
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"parameters": {
"jobId": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1",
"job": {
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"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",
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"target": "microsoft.tabu.cpu",
"tags": [
"tag1",
"tag_2"
]
}
},
"responses": {
"200": {
"body": {
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
"errorData": null,
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"metadata": null,
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"status": "Succeeded",
"target": "microsoft.tabu.cpu",
"tags": [
"tag1",
"tag_2"
]
}
},
"201": {
"body": {
"name": "tabu-demo",
"id": "a0f7adb6-0378-11eb-9463-2816a847b9a3",
"beginExecutionTime": "2020-09-30T23:57:11.5659691Z",
"cancellationTime": null,
"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",
"creationTime": "2020-09-30T23:57:02.3737928+00:00",
"endExecutionTime": "2020-09-30T23:57:11.6180743Z",
"errorData": null,
"inputDataFormat": "microsoft.qio.v2",
"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",
"inputParams": {
"params": {
"sweeps": 300
}
},
"metadata": null,
"outputDataFormat": "microsoft.qio-results.v2",
"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",
"providerId": "microsoft",
"status": "Succeeded",
"target": "microsoft.tabu.cpu",
"tags": [
"tag1",
"tag_2"
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"parameters": {
"resourceGroupName": "quantumResourcegroup",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceName": "quantumworkspace1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "Microsoft",
"currentAvailability": "Available",
"targets": [
{
"id": "microsoft.paralleltempering-parameterfree.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.paralleltempering.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.simulatedannealing-parameterfree.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.simulatedannealing.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.tabu-parameterfree.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.tabu.cpu",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.simulatedannealing-parameterfree.fpga",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
},
{
"id": "microsoft.simulatedannealing.fpga",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": null
}
]
},
{
"id": "ionq",
"currentAvailability": "Available",
"targets": [
{
"id": "ionq.qpu",
"currentAvailability": "Available",
"averageQueueTime": 1679,
"statusPage": "https://status.ionq.co"
},
{
"id": "ionq.simulator",
"currentAvailability": "Available",
"averageQueueTime": 0,
"statusPage": "https://status.ionq.co"
}
]
}
],
"nextLink": null
}
}
}
}
Loading

0 comments on commit 4df4b84

Please sign in to comment.