We're celebrating World Quantum Day 2022! Join us

cirq_google.devices.GoogleNoiseProperties

Noise-defining properties for a Google device.

Inherited args:

  • gate_times_ns: Dict[Type[cirq.Gate], float] of gate types to their duration on quantum hardware. Used with t(1|phi)_ns to specify thermal noise.
  • t1_ns: Dict[cirq.Qid, float] of qubits to their T_1 time, in ns.
  • tphi_ns: Dict[cirq.Qid, float] of qubits to their T_phi time, in ns.
  • readout_errors: Dict[cirq.Qid, np.ndarray] of qubits to their readout errors in matrix form: [P(read |1> from |0>), P(read |0> from |1>)]. Used to prepend amplitude damping errors to measurements.
  • gate_pauli_errors: dict of noise_utils.OpIdentifiers (a gate and the qubits it targets) to the Pauli error for that operation. Used to construct depolarizing error. Keys in this dict must have defined qubits.
  • validate: If True, verifies that t1 and tphi qubits sets match, and that all symmetric two-qubit gates have errors which are symmetric over the qubits they affect. Defaults to True.

Additional args:

  • fsim_errors: Dict[noise_utils.OpIdentifier, cirq.PhasedFSimGate] of gate types (potentially on specific qubits) to the PhasedFSim fix-up operation for that gate. Defaults to no-op for all gates.

qubits Qubits for which we have data
gate_times_ns Dataclass field
t1_ns Dataclass field
tphi_ns Dataclass field
readout_errors Dataclass field
gate_pauli_errors Dataclass field
validate Dataclass field
fsim_errors Dataclass field

Methods

asymmetric_two_qubit_gates

View source

Returns the set of asymmetric two-qubit gates this class supports.

build_noise_models

View source

Construct all NoiseModels associated with NoiseProperties.

expected_gates

Returns the set of all gates this class supports.

single_qubit_gates

View source

Returns the set of single-qubit gates this class supports.

symmetric_two_qubit_gates

View source

Returns the set of symmetric two-qubit gates this class supports.

two_qubit_gates

Returns the set of all two-qubit gates this class supports.

with_params

View source

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__

View source

Return self==value.

validate True