-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated log_of_measurement_results parameters (#5233)
* deprecate log_of_measurement_results * Fix test * coverage * Add empty ClassicalDataDictionaryStore.repr test * Add ActOnArgs test * Add tests * Add ActOnStabilizerArgs tests * nits * coverGE * format Co-authored-by: Cirq Bot <[email protected]>
- Loading branch information
Showing
17 changed files
with
358 additions
and
399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
119 changes: 64 additions & 55 deletions
119
cirq-core/cirq/protocols/json_test_data/ClassicalDataDictionaryStore.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,69 @@ | ||
{ | ||
"cirq_type": "ClassicalDataDictionaryStore", | ||
"records": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
[[0, 1]] | ||
] | ||
], | ||
"measured_qubits": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
[[ | ||
[ | ||
{ | ||
"cirq_type": "ClassicalDataDictionaryStore", | ||
"records": [ | ||
[ | ||
{ | ||
"cirq_type": "LineQubit", | ||
"x": 0 | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
[[0, 1]] | ||
] | ||
], | ||
"measured_qubits": [ | ||
[ | ||
{ | ||
"cirq_type": "LineQubit", | ||
"x": 1 | ||
} | ||
]] | ||
] | ||
], | ||
"channel_records": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "c", | ||
"path": [] | ||
}, | ||
[3] | ||
] | ||
], | ||
"measurement_types": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
1 | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
[[ | ||
{ | ||
"cirq_type": "LineQubit", | ||
"x": 0 | ||
}, | ||
{ | ||
"cirq_type": "LineQubit", | ||
"x": 1 | ||
} | ||
]] | ||
] | ||
], | ||
"channel_records": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "c", | ||
"path": [] | ||
}, | ||
[3] | ||
] | ||
], | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "c", | ||
"path": [] | ||
}, | ||
2 | ||
"measurement_types": [ | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "m", | ||
"path": [] | ||
}, | ||
1 | ||
], | ||
[ | ||
{ | ||
"cirq_type": "MeasurementKey", | ||
"name": "c", | ||
"path": [] | ||
}, | ||
2 | ||
] | ||
] | ||
] | ||
} | ||
}, | ||
{ | ||
"cirq_type": "ClassicalDataDictionaryStore", | ||
"records": [], | ||
"measured_qubits": [], | ||
"channel_records": [], | ||
"measurement_types": [] | ||
} | ||
] |
5 changes: 4 additions & 1 deletion
5
cirq-core/cirq/protocols/json_test_data/ClassicalDataDictionaryStore.repr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
cirq.ClassicalDataDictionaryStore(_records={cirq.MeasurementKey('m'): [[0, 1]]}, _measured_qubits={cirq.MeasurementKey('m'): [[cirq.LineQubit(0), cirq.LineQubit(1)]]}, _channel_records={cirq.MeasurementKey('c'): [3]}, _measurement_types={cirq.MeasurementKey('m'): cirq.MeasurementType.MEASUREMENT, cirq.MeasurementKey('c'): cirq.MeasurementType.CHANNEL}) | ||
[ | ||
cirq.ClassicalDataDictionaryStore(_records={cirq.MeasurementKey('m'): [[0, 1]]}, _measured_qubits={cirq.MeasurementKey('m'): [[cirq.LineQubit(0), cirq.LineQubit(1)]]}, _channel_records={cirq.MeasurementKey('c'): [3]}, _measurement_types={cirq.MeasurementKey('m'): cirq.MeasurementType.MEASUREMENT, cirq.MeasurementKey('c'): cirq.MeasurementType.CHANNEL}), | ||
cirq.ClassicalDataDictionaryStore(), | ||
] |
Oops, something went wrong.