Create device spec for the given qubits and coupled pairs.
cirq_google.devices.known_devices.create_device_proto_for_qubits(
qubits: Collection[cirq.Qid],
pairs: Collection[Tuple[cirq.Qid, cirq.Qid]],
gate_sets: Optional[Iterable[serializable_gate_set.SerializableGateSet]] = None,
durations_picos: Optional[Dict[str, int]] = None,
out: Optional[cirq_google.api.v2.device_pb2.DeviceSpecification
] = None
) -> cirq_google.api.v2.device_pb2.DeviceSpecification
Args |
qubits
|
Qubits that can perform single-qubit gates.
|
pairs
|
Pairs of coupled qubits that can perform two-qubit gates.
|
gate_sets
|
Gate sets that define the translation between gate ids and
cirq Gate objects.
|
durations_picos
|
A map from gate ids to gate durations in picoseconds.
|
out
|
If given, populate this proto, otherwise create a new proto.
|