forked from microsoft/qdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
964 lines (964 loc) · 34.9 KB
/
package.json
File metadata and controls
964 lines (964 loc) · 34.9 KB
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
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
{
"name": "qsharp-lang-vscode-dev",
"displayName": "[DEV BUILD] Azure Quantum Development Kit (QDK)",
"description": "Q# and OpenQASM 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, 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",
"adaptive_rif"
],
"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.",
"The Adaptive_RIF target profile includes all of the required Adaptive Profile capabilities, as well as the optional integer & floating point 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 || resourceLangId == openqasm",
"group": "navigation@1"
},
{
"command": "qsharp-vscode.debugEditorContents",
"when": "resourceLangId == qsharp || resourceLangId == openqasm",
"group": "navigation@2"
}
],
"commandPalette": [
{
"command": "qsharp-vscode.debugEditorContents",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.runEditorContents",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.runEditorContentsWithCircuit",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"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 || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.showHistogram",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.showRe",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.showHelp",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.showCircuit",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.showDocumentation",
"when": "resourceLangId == qsharp"
},
{
"command": "qsharp-vscode.setTargetProfile",
"when": "resourceLangId == qsharp || resourceLangId == openqasm"
},
{
"command": "qsharp-vscode.webOpener",
"when": "false"
},
{
"command": "qsharp-vscode.populateFilesList",
"when": "resourceFilename == qsharp.json"
},
{
"command": "qsharp-vscode.addProjectReference",
"when": "resourceFilename == qsharp.json"
},
{
"command": "qsharp-vscode.updateCopilotInstructions"
}
],
"view/title": [
{
"command": "qsharp-vscode.workspacesRefresh",
"when": "view == quantum-workspaces",
"group": "navigation"
},
{
"command": "qsharp-vscode.workspacesAdd",
"when": "view == quantum-workspaces",
"group": "navigation"
},
{
"command": "qsharp-vscode.copilotClear",
"when": "view == quantum-copilot",
"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"
}
]
},
"viewsContainers": {
"activitybar": [
{
"id": "quantum-copilot-container",
"title": "Microsoft Quantum Copilot",
"icon": "resources/Q-vector-1024x1024.svg"
}
]
},
"views": {
"explorer": [
{
"id": "quantum-workspaces",
"name": "Quantum Workspaces"
}
],
"quantum-copilot-container": [
{
"when": "config.Q#.chat.enabled",
"id": "quantum-copilot",
"type": "webview",
"name": "Microsoft Quantum Copilot"
}
]
},
"viewsWelcome": [
{
"view": "quantum-workspaces",
"contents": "Connect to Azure Quantum\n[Connect to 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": "QDK"
},
{
"command": "qsharp-vscode.webOpener",
"title": "Internal web opener",
"category": "QDK"
},
{
"command": "qsharp-vscode.debugEditorContents",
"title": "Debug file",
"category": "Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "qsharp-vscode.runEditorContents",
"title": "Run File",
"category": "Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "qsharp-vscode.runEditorContentsWithCircuit",
"title": "Run file and show circuit diagram",
"category": "QDK"
},
{
"command": "qsharp-vscode.showHistogram",
"title": "Run file and show histogram",
"category": "QDK"
},
{
"command": "qsharp-vscode.showRe",
"title": "Calculate Resource Estimates",
"category": "QDK"
},
{
"command": "qsharp-vscode.showHelp",
"title": "Help",
"category": "QDK"
},
{
"command": "qsharp-vscode.showCircuit",
"title": "Show circuit",
"category": "QDK"
},
{
"command": "qsharp-vscode.showDocumentation",
"title": "Show API documentation",
"category": "QDK"
},
{
"command": "qsharp-vscode.workspacesRefresh",
"category": "QDK",
"title": "Refresh Azure Quantum workspaces",
"icon": "$(refresh)"
},
{
"command": "qsharp-vscode.workspacesAdd",
"category": "QDK",
"title": "Connect to an Azure Quantum workspace",
"icon": "$(add)"
},
{
"command": "qsharp-vscode.workspacesRemove",
"category": "QDK",
"title": "Remove workspace connection",
"icon": "$(remove)"
},
{
"command": "qsharp-vscode.copilotClear",
"category": "QDK",
"title": "Clear Quantum Copilot chat",
"enablement": "config.Q#.chat.enabled && !qdkCopilotIsBusy",
"icon": "$(clear-all)"
},
{
"command": "qsharp-vscode.workspacePythonCode",
"category": "QDK",
"title": "Copy Python code to connect to workspace"
},
{
"command": "qsharp-vscode.workspaceOpenPortal",
"category": "QDK",
"title": "Open the workspace in the Azure portal",
"icon": "$(link-external)"
},
{
"command": "qsharp-vscode.targetSubmit",
"category": "QDK",
"title": "Submit current QDK program",
"icon": "$(run)"
},
{
"command": "qsharp-vscode.getQir",
"category": "QDK",
"title": "Get QIR for current QDK program"
},
{
"command": "qsharp-vscode.downloadResults",
"category": "QDK",
"title": "Download Azure Quantum job results",
"icon": "$(cloud-download)"
},
{
"command": "qsharp-vscode.setTargetProfile",
"category": "QDK",
"title": "Set the Azure Quantum QIR target profile"
},
{
"command": "qsharp-vscode.createNotebook",
"category": "QDK",
"title": "Create an Azure Quantum notebook"
},
{
"command": "qsharp-vscode.openPlayground",
"category": "QDK",
"title": "Open QDK playground"
},
{
"command": "qsharp-vscode.populateFilesList",
"category": "QDK",
"title": "Populate qsharp.json files list"
},
{
"command": "qsharp-vscode.addProjectReference",
"category": "QDK",
"title": "Add Q# project reference"
},
{
"command": "qsharp-vscode.updateCopilotInstructions",
"category": "QDK",
"title": "Add Copilot instructions file for Q# and OpenQASM"
}
],
"breakpoints": [
{
"language": "qsharp"
},
{
"language": "openqasm"
}
],
"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"
},
{
"id": "qsharpcircuit",
"aliases": [
"Q# Circuit",
"qsc"
],
"extensions": [
".qsc"
],
"icon": {
"light": "./resources/file-icon-light.svg",
"dark": "./resources/file-icon-dark.svg"
}
},
{
"id": "openqasm",
"aliases": [
"openqasm",
"OpenQASM",
"QASM"
],
"extensions": [
".qasm",
".inc"
],
"configuration": "./language-configuration-openqasm.json"
}
],
"grammars": [
{
"language": "qsharp",
"scopeName": "source.qsharp",
"path": "./syntaxes/qsharp.tmLanguage.json"
},
{
"language": "openqasm",
"scopeName": "source.openqasm",
"path": "./syntaxes/openqasm.tmLanguage.json"
}
],
"jsonValidation": [
{
"fileMatch": "qsharp.json",
"url": "./qsharp.schema.json"
}
],
"debuggers": [
{
"type": "qsharp",
"languages": [
"qsharp",
"openqasm"
],
"label": "QDK Debug",
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a source 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"
}
},
"customEditors": [
{
"viewType": "qsharp-webview.circuit",
"displayName": "Quantum Circuit",
"selector": [
{
"filenamePattern": "*.qsc"
}
],
"priority": "default"
}
],
"languageModelTools": [
{
"name": "azure-quantum-get-jobs",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetJobs",
"displayName": "Get Azure Quantum Jobs",
"modelDescription": "Get a list of recent jobs that have been run by the customer, along with their statuses, in the currently active workspace. Call this when you need to know what jobs have been run recently or need a history of jobs run, for example when a customer asks 'What are my recent jobs?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
{
"name": "azure-quantum-get-job",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetJob",
"displayName": "Get Azure Quantum Job Details",
"modelDescription": "Get the job information for a customer's job given its id. Call this whenever you need to know information about a specific job, for example when a customer asks 'What is the status of my job?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"job_id": {
"type": "string",
"description": "Job's unique identifier."
}
},
"required": [
"job_id"
],
"additionalProperties": false
}
},
{
"name": "azure-quantum-connect-to-workspace",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumConnectToWorkspace",
"displayName": "Connect to Azure Quantum Workspace",
"modelDescription": "Starts the UI flow to connect to an existing Azure Quantum Workspace. Call this when the customer does not have an active workspace, and agrees to connect to a workspace.",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
{
"name": "azure-quantum-download-job-results",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumDownloadJobResults",
"displayName": "Download Azure Quantum Job Results",
"modelDescription": "Download and display the results from a customer's job given its id. Call this when you need to download or display as a histogram the results for a job, for example when a customer asks 'What are the results of my last job?' or 'Can you show me the histogram for this job?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"job_id": {
"type": "string",
"description": "Job's unique identifier."
}
},
"required": [
"job_id"
],
"additionalProperties": false
}
},
{
"name": "azure-quantum-get-workspaces",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetWorkspaces",
"displayName": "Get Azure Quantum Workspaces",
"modelDescription": "Get a list of workspaces the customer has access to, in the form of workspace ids. Call this when you need to know what workspaces the customer has access to, for example when a customer asks 'What are my workspaces?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
{
"name": "azure-quantum-submit-to-target",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumSubmitToTarget",
"displayName": "Submit to Azure Quantum Target",
"modelDescription": "Submit the current program to Azure Quantum with the provided information. Call this when you need to submit or run a program with Azure Quantum, for example when a customer asks 'Can you submit this program to Azure?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"job_name": {
"type": "string",
"description": "The string to name the created job."
},
"target_id": {
"type": "string",
"description": "The ID or name of the target to submit the job to."
},
"number_of_shots": {
"type": "number",
"description": "The number of shots to use for the job."
}
},
"required": [
"job_name",
"target_id",
"number_of_shots"
],
"additionalProperties": false
}
},
{
"name": "azure-quantum-get-active-workspace",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetActiveWorkspace",
"displayName": "Get Active Azure Quantum Workspace",
"modelDescription": "Get the id of the active workspace for this conversation. Call this when you need to know what workspace is the active workspace being used in the context of the current conversation, for example when a customer asks 'What is the workspace that's being used?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
{
"name": "azure-quantum-set-active-workspace",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumSetActiveWorkspace",
"displayName": "Set Active Azure Quantum Workspace",
"modelDescription": "Set the active workspace for this conversation by id. Call this when you need to set what workspace is the active workspace being used in the context of the current conversation, for example when a customer says 'Please use this workspace for my requests.'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"workspace_id": {
"type": "string",
"description": "The id of the workspace to set as active."
}
},
"required": [
"workspace_id"
],
"additionalProperties": false
}
},
{
"name": "azure-quantum-get-providers",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetProviders",
"displayName": "Get Azure Quantum Providers",
"modelDescription": "Get a list of hardware providers available to the customer, along with their provided targets. Call this when you need to know what providers or targets are available, for example when a customer asks 'What are the available providers?' or 'What targets do I have available?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}
},
{
"name": "azure-quantum-get-target",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "azureQuantumGetTarget",
"displayName": "Get Azure Quantum Target",
"modelDescription": "Get the target information for a specified target given its id. Call this whenever you need to know information about a specific target, for example when a customer asks 'What is the status of this target?'",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"target_id": {
"type": "string",
"description": "The ID of the target to get."
}
},
"required": [
"target_id"
],
"additionalProperties": false
}
},
{
"name": "qsharp-run-program",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "qsharpRunProgram",
"displayName": "Run Q# Program",
"modelDescription": "Executes a Q# program. The path to a .qs file must be specified in the `filePath` parameter. A quantum simulator will be run locally. Q# does not provide any CLI tools, so call this tool whenever you need to execute Q#, instead of running any CLI commands. The `shots` parameter controls the number of times to repeat the simulation. If the number of shots is greater than 1, a histogram will be generated, and the results will be displayed in a dedicated panel.",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "The absolute path to the .qs file. If this file is part of a project, the whole project will be compiled as the program. A .qs file belongs to a project if it resides anywhere under a src/ directory whose parent directory also contains a qsharp.json manifest."
},
"shots": {
"type": "number",
"description": "The number of times to run the program. Defaults to 1 if not specified.",
"default": 1
}
},
"required": [
"filePath"
],
"additionalProperties": false
}
},
{
"name": "qsharp-generate-circuit",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "qsharpGenerateCircuit",
"displayName": "Generate Q# Circuit Diagram",
"modelDescription": "Generates a visual circuit diagram for a Q# program. The path to a .qs file must be specified in the `filePath` parameter. This tool will compile the Q# program and generate a quantum circuit diagram that visually represents the quantum operations in the code. If the program contains any dynamic behavior such as comparing measurement results, then the program will be executed using a quantum simulator, and the resulting circuit diagram will simply be a trace of the operations that were actually executed during simulation. The diagram will be displayed in a dedicated circuit panel.",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "The absolute path to the .qs file. If this file is part of a project, the whole project will be compiled as the program. A .qs file belongs to a project if it resides anywhere under a src/ directory whose parent directory also contains a qsharp.json manifest."
}
},
"required": [
"filePath"
],
"additionalProperties": false
}
},
{
"name": "qsharp-run-resource-estimator",
"tags": [
"azure-quantum",
"qsharp",
"qdk"
],
"toolReferenceName": "qsharpRunResourceEstimator",
"displayName": "Run Q# Resource Estimator",
"modelDescription": "Runs the quantum resource estimator on a Q# program to calculate the required physical resources. The path to a .qs file must be specified in the `filePath` parameter. This tool will analyze the Q# program and generate estimates of the quantum resources required to run the algorithm, such as the number of qubits, T gates, and other quantum operations. Results will be displayed in a dedicated resource estimator panel.",
"canBeReferencedInPrompt": true,
"icon": "./resources/file-icon-light.svg",
"inputSchema": {
"type": "object",
"properties": {
"filePath": {
"type": "string",
"description": "The absolute path to the .qs file. If this file is part of a project, the whole project will be compiled as the program. A .qs file belongs to a project if it resides anywhere under a src/ directory whose parent directory also contains a qsharp.json manifest."
},
"qubitTypes": {
"type": "array",
"description": "Array of qubit type labels to use for resource estimation. Allowed values:\n- 'qubit_gate_ns_e3': Superconducting/spin qubit with 1e-3 error rate\n- 'qubit_gate_ns_e4': Superconducting/spin qubit with 1e-4 error rate\n- 'qubit_gate_us_e3': Trapped ion qubit with 1e-3 error rate\n- 'qubit_gate_us_e4': Trapped ion qubit with 1e-4 error rate\n- 'qubit_maj_ns_e4 + surface_code': Majorana qubit with 1e-4 error rate (surface code QEC)\n- 'qubit_maj_ns_e6 + surface_code': Majorana qubit with 1e-6 error rate (surface code QEC)\n- 'qubit_maj_ns_e4 + floquet_code': Majorana qubit with 1e-4 error rate (floquet code QEC)\n- 'qubit_maj_ns_e6 + floquet_code': Majorana qubit with 1e-6 error rate (floquet code QEC)",
"items": {
"type": "string",
"enum": [
"qubit_gate_ns_e3",
"qubit_gate_ns_e4",
"qubit_gate_us_e3",
"qubit_gate_us_e4",
"qubit_maj_ns_e4 + surface_code",
"qubit_maj_ns_e6 + surface_code",
"qubit_maj_ns_e4 + floquet_code",
"qubit_maj_ns_e6 + floquet_code"
]
},
"default": [
"qubit_gate_ns_e3"
]
},
"errorBudget": {
"type": "number",
"description": "Error budget for the resource estimation. Must be a number between 0 and 1. Default is 0.001.",
"minimum": 0,
"maximum": 1,
"default": 0.001
}
},
"required": [
"filePath"
],
"additionalProperties": false
}
}
]
},
"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:copilotView": "node ../node_modules/typescript/bin/tsc -p ./src/copilot/webview/tsconfig.json",
"tsc:check": "npm run tsc:check:main && npm run tsc:check:view && npm run tsc:check:copilotView",
"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",
"tsc:watch:copilotView": "node ../node_modules/typescript/bin/tsc -p ./src/copilot/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"
}