def _cached_get_placements(
    problem_topo: cirq.NamedTopology, device: cirq.Device
) -> list[dict[Any, cirq.Qid]]:
    """Cache `cirq.get_placements` onto the specific device."""
    return get_placements(
        big_graph=_Device_dot_get_nx_graph(device), small_graph=problem_topo.graph
    )
Cache `cirq.get_placements` onto the specific device.
cirq-google/cirq_google/workflow/qubit_placement.py