View source on GitHub |
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: Union[None, float, Dict[Type['cirq.Gate'], float]] = None,
t1_ns: Union[None, float, Dict['cirq.Qid', float]] = None,
tphi_ns: Union[None, float, Dict['cirq.Qid', float]] = None,
readout_errors: Union[None, Sequence[float], Dict['cirq.Qid', Sequence[float]]] = None,
gate_pauli_errors: Union[None, float, Dict[Union[Type['cirq.Gate'], noise_utils.OpIdentifier],
float]] = None,
fsim_errors: Union[None, 'cirq.PhasedFSimGate', Dict[Union[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
np.ndarray 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
|