Commit 315f026
Change use of measurements to records in tomography [continued] (#7477)
Bringing PR #7421 across the finish line since the original
contributors' internships have concluded. I can't edit the original PR,
so forking and opening another PR would be the most efficient.
> In the file qubit_characterizations.py, in the function definition of
single_qubit_state_tomography, changing the use of measurements to
records allows for circuits with multiple key measurements to be
supported without throwing an error for having repeated keys
Heavy lifting by
@kygnz
@sgavi4
@abyssaldragonz
@thomasasha
Closes issue #7417 and the original PR #7421
---------
Co-authored-by: Victory Omole <[email protected]>1 parent cd32133 commit 315f026
File tree
2 files changed
+30
-13
lines changed- cirq-core/cirq/experiments
2 files changed
+30
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
634 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
635 | 642 | | |
636 | | - | |
| 643 | + | |
637 | 644 | | |
638 | 645 | | |
639 | | - | |
| 646 | + | |
640 | 647 | | |
641 | | - | |
| 648 | + | |
642 | 649 | | |
643 | | - | |
| 650 | + | |
644 | 651 | | |
645 | | - | |
| 652 | + | |
646 | 653 | | |
647 | 654 | | |
648 | 655 | | |
| |||
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
| 163 | + | |
162 | 164 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | | - | |
168 | | - | |
169 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
170 | 176 | | |
171 | 177 | | |
172 | 178 | | |
173 | 179 | | |
| 180 | + | |
| 181 | + | |
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
177 | 185 | | |
| 186 | + | |
| 187 | + | |
178 | 188 | | |
179 | 189 | | |
180 | 190 | | |
| |||
0 commit comments