|
17 | 17 | examples: |
18 | 18 | - name: Run QIR bitcode from a file in the current folder and wait for the result. |
19 | 19 | text: |- |
20 | | - az quantum execute -g MyResourceGroup -w MyWorkspace -l MyLocation -t MyTarget \\ |
| 20 | + az quantum execute -g MyResourceGroup -w MyWorkspace -t MyTarget \\ |
21 | 21 | --job-name MyJob --job-input-format qir.v1 --job-input-file MyQirBitcode.bc \\ |
22 | 22 | --entry-point MyQirEntryPoint |
23 | 23 | - name: Run a Quil pass-through job on the Rigetti simulator and wait for the result. |
24 | 24 | text: |- |
25 | | - az quantum execute -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 25 | + az quantum execute -g MyResourceGroup -w MyWorkspace \\ |
26 | 26 | -t rigetti.sim.qvm --job-name MyJob --job-input-file MyProgram.quil \\ |
27 | 27 | --job-input-format rigetti.quil.v1 --job-output-format rigetti.quil-results.v1 |
28 | 28 | - name: Submit a Qiskit circuit to the IonQ simulator with job params and wait for the results. |
29 | 29 | text: |- |
30 | | - az quantum execute -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 30 | + az quantum execute -g MyResourceGroup -w MyWorkspace \\ |
31 | 31 | -t ionq.simulator --job-name MyJobName --job-input-file MyCircuit.json \\ |
32 | 32 | --job-input-format ionq.circuit.v1 --job-output-format ionq.quantum-results.v1 \\ |
33 | 33 | --job-params count=100 content-type=application/json |
|
40 | 40 | examples: |
41 | 41 | - name: Run QIR bitcode from a file in the current folder and wait for the result. |
42 | 42 | text: |- |
43 | | - az quantum run -g MyResourceGroup -w MyWorkspace -l MyLocation -t MyTarget \\ |
| 43 | + az quantum run -g MyResourceGroup -w MyWorkspace -t MyTarget \\ |
44 | 44 | --job-name MyJob --job-input-format qir.v1 --job-input-file MyQirBitcode.bc \\ |
45 | 45 | --entry-point MyQirEntryPoint |
46 | 46 | - name: Run a Quil pass-through job on the Rigetti simulator and wait for the result. |
47 | 47 | text: |- |
48 | | - az quantum run -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 48 | + az quantum run -g MyResourceGroup -w MyWorkspace \\ |
49 | 49 | -t rigetti.sim.qvm --job-name MyJob --job-input-file MyProgram.quil \\ |
50 | 50 | --job-input-format rigetti.quil.v1 --job-output-format rigetti.quil-results.v1 |
51 | 51 | - name: Submit a Qiskit circuit to the IonQ simulator with job params and wait for the results. |
52 | 52 | text: |- |
53 | | - az quantum run -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 53 | + az quantum run -g MyResourceGroup -w MyWorkspace \\ |
54 | 54 | -t ionq.simulator --job-name MyJobName --job-input-file MyCircuit.json \\ |
55 | 55 | --job-input-format ionq.circuit.v1 --job-output-format ionq.quantum-results.v1 \\ |
56 | 56 | --job-params count=100 content-type=application/json |
|
67 | 67 | examples: |
68 | 68 | - name: Get the list of jobs from an Azure Quantum workspace. |
69 | 69 | text: |- |
70 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation |
| 70 | + az quantum job list -g MyResourceGroup -w MyWorkspace |
71 | 71 | - name: List jobs that used the quantinuum provider. |
72 | 72 | text: |- |
73 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --provider-id quantinuum |
| 73 | + az quantum job list -g MyResourceGroup -w MyWorkspace --provider-id quantinuum |
74 | 74 | - name: List jobs that ran on the ionq.simulator target. |
75 | 75 | text: |- |
76 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --target-id ionq.simulator |
| 76 | + az quantum job list -g MyResourceGroup -w MyWorkspace --target-id ionq.simulator |
77 | 77 | - name: List jobs that completed successfully. |
78 | 78 | text: |- |
79 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --status Succeeded |
| 79 | + az quantum job list -g MyResourceGroup -w MyWorkspace --status Succeeded |
80 | 80 | - name: List jobs created after January 15th, 2025. |
81 | 81 | text: |- |
82 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --created-after 2025-01-15 |
| 82 | + az quantum job list -g MyResourceGroup -w MyWorkspace --created-after 2025-01-15 |
83 | 83 | - name: List jobs whose names start with "Generate...". |
84 | 84 | text: |- |
85 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --job-name Generate |
| 85 | + az quantum job list -g MyResourceGroup -w MyWorkspace --job-name Generate |
86 | 86 | - name: Skip the first 50 jobs, start listing at the 51st job and list 10 jobs. |
87 | 87 | text: |- |
88 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --skip 50 --top 10 |
| 88 | + az quantum job list -g MyResourceGroup -w MyWorkspace --skip 50 --top 10 |
89 | 89 | - name: Sort the job list by Target ID and display in tabular format. |
90 | 90 | text: |- |
91 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --orderby Target -o table |
| 91 | + az quantum job list -g MyResourceGroup -w MyWorkspace --orderby Target -o table |
92 | 92 | - name: Sort the job list by Job Name in descending order, display in tabular format. |
93 | 93 | text: |- |
94 | | - az quantum job list -g MyResourceGroup -w MyWorkspace -l MyLocation --orderby Name --order desc -o table |
| 94 | + az quantum job list -g MyResourceGroup -w MyWorkspace --orderby Name --order desc -o table |
95 | 95 | """ |
96 | 96 |
|
97 | 97 | helps['quantum job output'] = """ |
|
100 | 100 | examples: |
101 | 101 | - name: Print the results of a successful Azure Quantum job. |
102 | 102 | text: |- |
103 | | - az quantum job output -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 103 | + az quantum job output -g MyResourceGroup -w MyWorkspace \\ |
104 | 104 | -j yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy -o table |
105 | 105 | """ |
106 | 106 |
|
|
110 | 110 | examples: |
111 | 111 | - name: Get the status of an Azure Quantum job. |
112 | 112 | text: |- |
113 | | - az quantum job show -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 113 | + az quantum job show -g MyResourceGroup -w MyWorkspace \\ |
114 | 114 | -j yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy --query status |
115 | 115 | """ |
116 | 116 |
|
|
120 | 120 | examples: |
121 | 121 | - name: Submit QIR bitcode from a file in the current folder. |
122 | 122 | text: |- |
123 | | - az quantum job submit -g MyResourceGroup -w MyWorkspace -l MyLocation -t MyTarget \\ |
| 123 | + az quantum job submit -g MyResourceGroup -w MyWorkspace -t MyTarget \\ |
124 | 124 | --job-name MyJob --job-input-format qir.v1 --job-input-file MyQirBitcode.bc \\ |
125 | 125 | --entry-point MyQirEntryPoint |
126 | 126 | - name: Submit a Quil pass-through job to the Rigetti simulator. |
127 | 127 | text: |- |
128 | | - az quantum job submit -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 128 | + az quantum job submit -g MyResourceGroup -w MyWorkspace \\ |
129 | 129 | -t rigetti.sim.qvm --job-name MyJob --job-input-file MyProgram.quil \\ |
130 | 130 | --job-input-format rigetti.quil.v1 --job-output-format rigetti.quil-results.v1 |
131 | 131 | - name: Submit a IonQ JSON circuit to the IonQ simulator with job params. |
132 | 132 | text: |- |
133 | | - az quantum job submit -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 133 | + az quantum job submit -g MyResourceGroup -w MyWorkspace \\ |
134 | 134 | -t ionq.simulator --job-name MyJobName --job-input-file MyCircuit.json \\ |
135 | 135 | --job-input-format ionq.circuit.v1 --job-output-format ionq.quantum-results.v1 \\ |
136 | 136 | --job-params count=100 content-type=application/json |
|
142 | 142 | examples: |
143 | 143 | - name: Wait for completion of a job, check at 60 second intervals. |
144 | 144 | text: |- |
145 | | - az quantum job wait -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 145 | + az quantum job wait -g MyResourceGroup -w MyWorkspace \\ |
146 | 146 | -j yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy --max-poll-wait-secs 60 -o table |
147 | 147 | """ |
148 | 148 |
|
|
152 | 152 | examples: |
153 | 153 | - name: Cancel an Azure Quantum job by id. |
154 | 154 | text: |- |
155 | | - az quantum job cancel -g MyResourceGroup -w MyWorkspace -l MyLocation \\ |
| 155 | + az quantum job cancel -g MyResourceGroup -w MyWorkspace \\ |
156 | 156 | -j yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy |
157 | 157 | """ |
158 | 158 |
|
|
211 | 211 | examples: |
212 | 212 | - name: Get the list of targets available in a Azure Quantum workspaces |
213 | 213 | text: |- |
214 | | - az quantum target list -g MyResourceGroup -w MyWorkspace -l MyLocation |
| 214 | + az quantum target list -g MyResourceGroup -w MyWorkspace |
215 | 215 | """ |
216 | 216 |
|
217 | 217 | helps['quantum target set'] = """ |
|
288 | 288 | type: command |
289 | 289 | short-summary: List the quotas for the given (or current) Azure Quantum workspace. |
290 | 290 | examples: |
291 | | - - name: List the quota information of a specified Azure Quantum workspace. If a default workspace has been set, the -g, -w, and -l parameters are not required. |
| 291 | + - name: List the quota information of a specified Azure Quantum workspace. If a default workspace has been set, the -g and -w parameters are not required. |
292 | 292 | text: |- |
293 | | - az quantum workspace quotas -g MyResourceGroup -w MyWorkspace -l MyLocation |
| 293 | + az quantum workspace quotas -g MyResourceGroup -w MyWorkspace |
294 | 294 | """ |
295 | 295 |
|
296 | 296 | helps['quantum workspace set'] = """ |
|
299 | 299 | examples: |
300 | 300 | - name: Set the default Azure Quantum workspace. |
301 | 301 | text: |- |
302 | | - az quantum workspace set -g MyResourceGroup -w MyWorkspace -l MyLocation |
| 302 | + az quantum workspace set -g MyResourceGroup -w MyWorkspace |
303 | 303 | """ |
304 | 304 |
|
305 | 305 | helps['quantum workspace show'] = """ |
|
0 commit comments