File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export enum EventType {
39
39
ResourceEstimationEnd = "Qsharp.ResourceEstimationEnd" ,
40
40
TriggerHistogram = "Qsharp.TriggerHistogram" ,
41
41
HistogramStart = "Qsharp.HistogramStart" ,
42
+ NoisySimulation = "Qsharp.NoisySimulation" ,
42
43
HistogramEnd = "Qsharp.HistogramEnd" ,
43
44
FormatStart = "Qsharp.FormatStart" ,
44
45
FormatEnd = "Qsharp.FormatEnd" ,
@@ -209,6 +210,10 @@ type EventTypes = {
209
210
properties : { associationId : string } ;
210
211
measurements : Empty ;
211
212
} ;
213
+ [ EventType . NoisySimulation ] : {
214
+ properties : { associationId : string } ;
215
+ measurements : Empty ;
216
+ } ;
212
217
[ EventType . HistogramEnd ] : {
213
218
properties : { associationId : string } ;
214
219
measurements : { timeToCompleteMs : number } ;
Original file line number Diff line number Diff line change @@ -345,6 +345,9 @@ export function registerWebViewCommands(context: ExtensionContext) {
345
345
sendTelemetryEvent ( EventType . HistogramStart , { associationId } , { } ) ;
346
346
347
347
const noise = getPauliNoiseModel ( ) ;
348
+ if ( noise [ 0 ] != 0 || noise [ 1 ] != 0 || noise [ 2 ] != 0 ) {
349
+ sendTelemetryEvent ( EventType . NoisySimulation , { associationId } , { } ) ;
350
+ }
348
351
await worker . runWithPauliNoise (
349
352
program . programConfig ,
350
353
"" ,
You can’t perform that action at this time.
0 commit comments