cirq.list_of_dicts_to_zip
Converts a list of dictionaries into a cirq.Zip of cirq.Points.
cirq.list_of_dicts_to_zip(
params: Sequence[Mapping[str, float]]
) -> cirq.Zip
This will convert lists of dictionaries into a more compact
Sweep format. For large sweeps, this can vastly improve performance.
This will change [{'a': 1.0, 'b': 2.0}, {'a': 3.0, 'b': 4.0}]
into cirq.Zip(cirq.Points('a', [1.0, 3.0]), cirq.Points('b', [2.0, 4.0])_)
Raises |
|
ValueError if the keys in any of the list items are not the same.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-30 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-30 UTC."],[],[]]