![]() |
Noise-defining properties for a Google device.
cirq_google.devices.GoogleNoiseProperties(
gate_times_ns: dict[type, float],
t1_ns: dict[cirq.Qid, float],
tphi_ns: dict[cirq.Qid, float],
readout_errors: dict[cirq.Qid, list[float]],
gate_pauli_errors: dict[noise_utils.OpIdentifier, float],
validate: bool = True,
fsim_errors: dict[noise_utils.OpIdentifier, cirq.PhasedFSimGate] = dataclasses.field(default_factory=dict)
)
Methods
asymmetric_two_qubit_gates
@classmethod
asymmetric_two_qubit_gates() -> set[type]
Returns the set of asymmetric two-qubit gates this class supports.
build_noise_models
build_noise_models() -> list[cirq.NoiseModel]
Construct all NoiseModels associated with NoiseProperties.
expected_gates
@classmethod
expected_gates() -> set[type[ops.Gate]]
Returns the set of all gates this class supports.
single_qubit_gates
@classmethod
single_qubit_gates() -> set[type]
Returns the set of single-qubit gates this class supports.
symmetric_two_qubit_gates
@classmethod
symmetric_two_qubit_gates() -> set[type]
Returns the set of symmetric two-qubit gates this class supports.
two_qubit_gates
@classmethod
two_qubit_gates() -> set[type[ops.Gate]]
Returns the set of all two-qubit gates this class supports.
with_params
with_params(
*,
gate_times_ns: (None | float | dict[type[cirq.Gate], float]) = None,
t1_ns: (None | float | dict[cirq.Qid, float]) = None,
tphi_ns: (None | float | dict[cirq.Qid, float]) = None,
readout_errors: (None | Sequence[float] | dict[cirq.Qid, Sequence[float]]) = None,
gate_pauli_errors: (None | float | dict[type[cirq.Gate] | noise_utils.OpIdentifier, float]) = None,
fsim_errors: (None | cirq.PhasedFSimGate | dict[type[cirq.Gate] | noise_utils.
OpIdentifier, cirq.PhasedFSimGate]) = None
)
Returns a copy of this object with the given params overridden.
This method supports partial replacement: each arg can accept a single value (which will replace all existing values) or a mapping (which will replace matching entries in the old object). Otherwise, all fields are the same as those used in the constructor.
Args |
---|
gate_times_ns: float or dict[type[cirq.Gate
], float].
t1_ns: float or dict[cirq.Qid
, float].
tphi_ns: float or dict[cirq.Qid
, float].
readout_errors: Sequence or dict[cirq.Qid
, Sequence]. Converted to
list[float] if not provided in that format.
gate_pauli_errors: float or dict[cirq.OpIdentifier
, float].
Dict key can also be type[cirq.Gate
]; this will apply the given
error to all placements of that gate that appear in the original
object.
fsim_errors: cirq.PhasedFSimGate
or dict[cirq.OpIdentifier
,
cirq.PhasedFSimGate
] Dict key can also be type[cirq.Gate
]; this
will apply the given error to all placements of that gate that
appear in the original object.
__eq__
__eq__(
other
)
Return self==value.
Class Variables | |
---|---|
validate |
True
|