-
Notifications
You must be signed in to change notification settings - Fork 97
/
package.json
528 lines (528 loc) · 17 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
{
"name": "qsharp-lang-vscode-dev",
"displayName": "[DEV BUILD] Azure Quantum Development Kit (QDK)",
"description": "Q# Language Support",
"version": "0.0.0",
"publisher": "quantum",
"icon": "resources/qdk.png",
"galleryBanner": {
"color": "#252526",
"theme": "dark"
},
"type": "commonjs",
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Programming Languages",
"Notebooks"
],
"browser": "./out/extension.js",
"virtualWorkspaces": true,
"activationEvents": [
"onNotebook:jupyter-notebook",
"onDebug",
"onDebugResolve:qsharp",
"onDebugDynamicConfigurations:qsharp",
"onFileSystem:qsharp-vfs",
"onWebviewPanel:qsharp-webview"
],
"contributes": {
"walkthroughs": [
{
"id": "qsharp-vscode.welcome",
"title": "The Azure Quantum Development Kit",
"description": "Getting started with the Azure Quantum Development Kit in VS Code",
"steps": [
{
"id": "qsharp-vscode.welcome.editor",
"title": "Welcome to the Azure Quantum Development Kit",
"description": "The Azure Quantum Development Kit (QDK) is an open-source SDK that you can use to write quantum programs and execute them on quantum hardware. This walkthrough will show you how to get started with the Azure Quantum Development Kit in VS Code.\n\nThe QDK gives you rich editor support for writing quantum programs in the Q# language, such as error checking, signature help, completion lists, safely renaming identifiers, and much more.",
"media": {
"image": "resources/intellisense.png",
"altText": "Intellisense"
}
},
{
"id": "qsharp-vscode.welcome.debug",
"title": "Debug Q# code",
"description": "With your Q# code open in the editor, use the F5 shortcut or the top right icons in the code edtior to run or debug the code.",
"media": {
"image": "resources/debug.png",
"altText": "Debug"
}
},
{
"id": "qsharp-vscode.welcome.simulator",
"title": "Run quantum simulations",
"description": "You can run quantum simulations directly in VS Code and see the program output in the integrated terminal.",
"media": {
"image": "resources/console.png",
"altText": "Console"
}
},
{
"id": "qsharp-vscode.welcome.submit",
"title": "Run on Azure Quantum",
"description": "If you have an Azure subscription, you can connect to your Azure Quantum workspace and submit your Q# program directly to quantum hardware",
"media": {
"image": "resources/submit.png",
"altText": "Submit to Azure"
}
},
{
"id": "qsharp-vscode.welcome.starters",
"title": "Starting points",
"description": "Explore Q# safely by opening files in the [Q# playground](command:qsharp-vscode.openPlayground), or work in Python by [creating a Jupyter Notebook](command:qsharp-vscode.createNotebook) from a template",
"media": {
"image": "resources/notebook.png",
"altText": "Jupyter Notebooks"
}
}
]
}
],
"webOpener": {
"scheme": "qsharp-vfs",
"runCommands": [
{
"command": "qsharp-vscode.webOpener",
"args": [
"$url"
]
}
]
},
"configuration": {
"title": "Q#",
"properties": {
"Q#.qir.targetProfile": {
"type": "string",
"default": "unrestricted",
"enum": [
"unrestricted",
"base",
"adaptive_ri"
],
"enumDescriptions": [
"The set of all capabilities required to run any Q# program.",
"The minimal set of capabilities required to run a quantum program. This option maps to the Base Profile as defined by the QIR specification.",
"The Adaptive_RI target profile includes all of the required Adaptive Profile capabilities, as well as the optional integer computation and qubit reset capabilities, as defined by the QIR specification."
],
"markdownDescription": "Setting the target profile allows the Q# extension to generate programs that are compatible with a specific target. The target is the hardware or simulator which will be used to run the Q# program. [Learn more](https://aka.ms/qdk.qir)"
},
"Q#.simulation.pauliNoise": {
"markdownDescription": "The Pauli noise to apply when running multiple shots via the Histogram command. This is applied for every gate or measurement on all qubits referenced.\n\nProbability values are in the range [0, 1].",
"type": "object",
"additionalProperties": false,
"properties": {
"X": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 1,
"description": "The probability of a bit flip error occurring"
},
"Y": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 1,
"description": "The probability of a bit-and-phase flip error occurring"
},
"Z": {
"type": "number",
"default": 0,
"minimum": 0,
"maximum": 1,
"description": "The probability of a phase flip error occurring"
}
}
}
}
},
"menus": {
"editor/title/run": [
{
"command": "qsharp-vscode.runEditorContents",
"when": "resourceLangId == qsharp",
"group": "navigation@1"
},
{
"command": "qsharp-vscode.debugEditorContents",
"when": "resourceLangId == qsharp",
"group": "navigation@2"
}
],
"commandPalette": [
{
"command": "qsharp-vscode.debugEditorContents",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.runEditorContents",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.runEditorContentsWithCircuit",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.targetSubmit",
"when": "qsharp-vscode.treeItemSupportsQir"
},
{
"command": "qsharp-vscode.workspacesRemove",
"when": "qsharp-vscode.treeItemIsWorkspace"
},
{
"command": "qsharp-vscode.workspacePythonCode",
"when": "qsharp-vscode.treeItemIsWorkspace"
},
{
"command": "qsharp-vscode.workspaceOpenPortal",
"when": "qsharp-vscode.treeItemIsWorkspace"
},
{
"command": "qsharp-vscode.downloadResults",
"when": "qsharp-vscode.treeItemSupportsDownload"
},
{
"command": "qsharp-vscode.getQir",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showHistogram",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showRe",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showHelp",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showCircuit",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showDocumentation",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.setTargetProfile",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.webOpener",
"when": "false"
},
{
"command": "qsharp-vscode.populateFilesList",
"when": "resourceFilename == qsharp.json"
},
{
"command": "qsharp-vscode.addProjectReference",
"when": "resourceFilename == qsharp.json"
}
],
"view/title": [
{
"command": "qsharp-vscode.workspacesRefresh",
"when": "view == quantum-workspaces",
"group": "navigation"
},
{
"command": "qsharp-vscode.workspacesAdd",
"when": "view == quantum-workspaces",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "qsharp-vscode.workspaceOpenPortal",
"group": "inline",
"when": "view == quantum-workspaces && viewItem == workspace"
},
{
"command": "qsharp-vscode.workspacesRemove",
"when": "view == quantum-workspaces && viewItem == workspace"
},
{
"command": "qsharp-vscode.targetSubmit",
"group": "inline",
"when": "view == quantum-workspaces && viewItem == qir-target"
},
{
"command": "qsharp-vscode.downloadResults",
"group": "inline",
"when": "view == quantum-workspaces && viewItem == result-download"
},
{
"command": "qsharp-vscode.workspacePythonCode",
"when": "view == quantum-workspaces && viewItem == workspace"
}
],
"explorer/context": [
{
"command": "qsharp-vscode.createProject",
"when": "explorerResourceIsFolder"
},
{
"command": "qsharp-vscode.populateFilesList",
"when": "resourceFilename == qsharp.json"
},
{
"command": "qsharp-vscode.addProjectReference",
"when": "resourceFilename == qsharp.json"
}
]
},
"views": {
"explorer": [
{
"id": "quantum-workspaces",
"name": "Quantum Workspaces"
}
]
},
"viewsWelcome": [
{
"view": "quantum-workspaces",
"contents": "Connect to Azure Quantum\n[Add an existing workspace](command:qsharp-vscode.workspacesAdd)\nNote: For the first workspace added there may be several consent prompts to grant VS Code access.\nFor more information about the QDK and Azure Quantum, visit [https://aka.ms/AQ/Documentation](https://aka.ms/AQ/Documentation)."
}
],
"commands": [
{
"command": "qsharp-vscode.createProject",
"title": "Create Q# project",
"category": "Q#"
},
{
"command": "qsharp-vscode.webOpener",
"title": "Internal web opener",
"category": "Q#"
},
{
"command": "qsharp-vscode.debugEditorContents",
"title": "Debug Q# file",
"category": "Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "qsharp-vscode.runEditorContents",
"title": "Run Q# File",
"category": "Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "qsharp-vscode.runEditorContentsWithCircuit",
"title": "Run file and show circuit diagram",
"category": "Q#"
},
{
"command": "qsharp-vscode.showHistogram",
"title": "Run file and show histogram",
"category": "Q#"
},
{
"command": "qsharp-vscode.showRe",
"title": "Calculate Resource Estimates",
"category": "Q#"
},
{
"command": "qsharp-vscode.showHelp",
"title": "Help",
"category": "Q#"
},
{
"command": "qsharp-vscode.showCircuit",
"title": "Show circuit",
"category": "Q#"
},
{
"command": "qsharp-vscode.showDocumentation",
"title": "Show API documentation",
"category": "Q#"
},
{
"command": "qsharp-vscode.workspacesRefresh",
"category": "Q#",
"title": "Refresh Azure Quantum workspaces",
"icon": "$(refresh)"
},
{
"command": "qsharp-vscode.workspacesAdd",
"category": "Q#",
"title": "Connect to an Azure Quantum workspace",
"icon": "$(add)"
},
{
"command": "qsharp-vscode.workspacesRemove",
"category": "Q#",
"title": "Remove workspace connection",
"icon": "$(remove)"
},
{
"command": "qsharp-vscode.workspacePythonCode",
"category": "Q#",
"title": "Copy Python code to connect to workspace"
},
{
"command": "qsharp-vscode.workspaceOpenPortal",
"category": "Q#",
"title": "Open the workspace in the Azure portal",
"icon": "$(link-external)"
},
{
"command": "qsharp-vscode.targetSubmit",
"category": "Q#",
"title": "Submit current Q# program",
"icon": "$(run)"
},
{
"command": "qsharp-vscode.getQir",
"category": "Q#",
"title": "Get QIR for current Q# program"
},
{
"command": "qsharp-vscode.downloadResults",
"category": "Q#",
"title": "Download Azure Quantum job results",
"icon": "$(cloud-download)"
},
{
"command": "qsharp-vscode.setTargetProfile",
"category": "Q#",
"title": "Set the Azure Quantum QIR target profile"
},
{
"command": "qsharp-vscode.createNotebook",
"category": "Q#",
"title": "Create an Azure Quantum notebook"
},
{
"command": "qsharp-vscode.openPlayground",
"category": "Q#",
"title": "Open Q# playground"
},
{
"command": "qsharp-vscode.populateFilesList",
"category": "Q#",
"title": "Populate qsharp.json files list"
},
{
"command": "qsharp-vscode.addProjectReference",
"category": "Q#",
"title": "Add Q# project reference"
}
],
"breakpoints": [
{
"language": "qsharp"
}
],
"languages": [
{
"id": "qsharp",
"aliases": [
"Q#",
"qsharp"
],
"extensions": [
".qs"
],
"icon": {
"light": "./resources/file-icon-light.svg",
"dark": "./resources/file-icon-dark.svg"
},
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "qsharp",
"scopeName": "source.qsharp",
"path": "./syntaxes/qsharp.tmLanguage.json"
}
],
"jsonValidation": [
{
"fileMatch": "qsharp.json",
"url": "./qsharp.schema.json"
}
],
"debuggers": [
{
"type": "qsharp",
"languages": [
"qsharp"
],
"label": "Q# Debug",
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a text file.",
"default": "${file}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": false
},
"entry": {
"type": "string",
"description": "Entry expression.",
"default": ""
},
"shots": {
"type": "number",
"description": "Number of shots to execute.",
"default": 1
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": false
},
"showCircuit": {
"type": "boolean",
"description": "Display the quantum circuit diagram while running.",
"default": false
}
}
}
}
}
],
"configurationDefaults": {
"[qsharp]": {
"debug.saveBeforeStart": "none"
}
}
},
"scripts": {
"build": "npm run tsc:check && node build.mjs",
"build:watch": "node build.mjs --watch",
"start": "npm exec --no -- @vscode/test-web --extensionDevelopmentPath . ../samples",
"test": "node ./test/runTests.mjs",
"pretest": "npm exec --no playwright install chromium && node ./test/buildTests.mjs",
"tsc:check:main": "node ../node_modules/typescript/bin/tsc -p ./tsconfig.json",
"tsc:check:view": "node ../node_modules/typescript/bin/tsc -p ./src/webview/tsconfig.json",
"tsc:check": "npm run tsc:check:main && npm run tsc:check:view",
"tsc:watch": "node ../node_modules/typescript/bin/tsc -p ./tsconfig.json --watch --preserveWatchOutput",
"tsc:watch:view": "node ../node_modules/typescript/bin/tsc -p ./src/webview/tsconfig.json --watch --preserveWatchOutput"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/qsharp.git"
},
"license": "SEE LICENSE IN LICENSE.txt",
"aiKey": "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255"
}