/
gauge_invariant.txt
55 lines (47 loc) · 2.7 KB
/
gauge_invariant.txt
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
@@markdown
# Gauge Invariant Outputs
Quantities which are *gauge-invariant* are the most reliable means of assessing the quality of the gates, as these do not depend on any unphysical gauge degrees of freedom
@@markdown
### SPAM probabilities
The estimated SPAM probabilities for each measurement outcome.
@@code
ws.SpamParametersTable( (target_model, mdl), ['Target','Estimated'], cri)
@@markdown
### Spectral error metrics between estimated gates and ideal targets
A variety of gauge-invariant quantities that quantify the distance or discrepancy between (1) an estimated gate, and (2) the ideal corresponding target operation.
@@code
ws.GatesVsTargetTable(mdl, target_model, cri,
display=('evinf','evagi','evnuinf','evnuagi','evdiamond','evnudiamond'))
@@markdown
### Eigenvalues of estimated gates:
The spectrum (Eigenvalues column) of each estimated gate. It also breaks out the real and imaginary parts of each eigenvalue, and it compares the estimated eigenvalues to those of the ideal target gates in several useful ways.
@@code
ws.GateEigenvalueTable(mdl, target_model, cri,
display=('evals','target','absdiff-evals',
'infdiff-evals','log-evals','absdiff-log-evals'))
@@markdown
### Gram Matrix Eigenvalues:
Compares the eigenvalues of the data-derived Gram matrix with those of a Gram matrix computed using the target gates.
@@code
ws.GramMatrixBarPlot(ds, target_model, 10, strs)
@@markdown
### RB error metrics
Estimates for the error rate that would be obtained using the Randomized Benchmarking (RB) protocol.
@@code
ws.ModelVsTargetTable(mdl, target_model, clifford_compilation, cri)
@@markdown
## Germs Detail
The figures in this section compare each germ-spectrum to the spectrum of that germ if it were generated using the set "eigenspace-projected" gates obtained by placing each gate's GST-estimated eigenvalues within eigenbasis of the ideal target gate.
### Discrepancy between germs and spectral gates
Compares each germ's estimated spectrum to the spectrum it *would* have if each individual gate had the eigenvalues that GST estimated for it, but exactly the right (target) eigenbasis.
@@code
ws.GatesVsTargetTable(mdl, mdl_eigenspace_projected, None,
display=('evdiamond','evnudiamond'), virtual_ops=germs)
@@markdown
### Eigenvalues of estimated germs
Lists each germ's spectrum. It also lists metrics that compare these spectra to the ones predicted by the "eigenspace-projected" gates.
@@code
ws.GateEigenvalueTable(mdl, mdl_eigenspace_projected, cri,
display=('evals','target','absdiff-evals',
'infdiff-evals','log-evals','absdiff-log-evals'),
virtual_ops=germs)