A noise model for Pasqal neutral atom device
Inherits From: NoiseModel
cirq.pasqal.PasqalNoiseModel(
device: cirq.devices.Device
)
Used in the notebooks
Methods
from_noise_model_like
View source
@classmethod
from_noise_model_like(
noise: "cirq.NOISE_MODEL_LIKE"
) -> "cirq.NoiseModel"
Transforms an object into a noise model if umambiguously possible.
Args |
noise
|
None , a <a href="../../cirq/devices/NoiseModel"><code>cirq.NoiseModel</code></a> , or a single qubit operation.
|
Returns |
<a href="../../cirq#NO_NOISE"><code>cirq.NO_NOISE</code></a> when given None ,
<a href="../../cirq/devices/ConstantQubitNoiseModel"><code>cirq.ConstantQubitNoiseModel(gate)</code></a> when given a single qubit
gate, or the given value if it is already a <a href="../../cirq/devices/NoiseModel"><code>cirq.NoiseModel</code></a> .
|
Raises |
TypeError
|
The input is not a cirq.NOISE_MODE_LIKE .
|
get_default_noise_dict
View source
get_default_noise_dict() -> Dict[str, Any]
Returns the current noise parameters
get_op_string
View source
get_op_string(
cirq_op: cirq.ops.Operation
) -> str
Find the string representation for a given operation
Args |
cirq_op
|
one cirq operation
|
Returns |
String representing the gate operations
|
is_virtual_moment
View source
is_virtual_moment(
moment: "cirq.Moment"
) -> bool
Returns true iff the given moment is non-empty and all of its
operations are virtual.
Moments for which this method returns True should not have additional
noise applied to them.
Args |
moment
|
<a href="../../cirq/ops/Moment"><code>cirq.Moment</code></a> to check for non-virtual operations.
|
Returns |
True if "moment" is non-empty and all operations in "moment" are
virtual; false otherwise.
|
noisy_moment
View source
noisy_moment(
moment: cirq.ops.Moment
,
system_qubits: Sequence[cirq.ops.Qid
]
) -> List[cirq.ops.Operation
]
Returns a list of noisy moments.
The model includes
- Depolarizing noise with gate-dependent strength
Args:
moment: ideal moment
system_qubits: List of qubits
Returns:
List of ideal and noisy moments
noisy_moments
View source
noisy_moments(
moments: "Iterable[cirq.Moment]",
system_qubits: Sequence['cirq.Qid']
) -> Sequence['cirq.OP_TREE']
Adds possibly stateful noise to a series of moments.
Args |
moments
|
The moments to add noise to.
|
system_qubits
|
A list of all qubits in the system.
|
Returns |
A sequence of OP_TREEs, with the k'th tree corresponding to the
noisy operations for the k'th moment.
|
noisy_operation
View source
noisy_operation(
operation: "cirq.Operation"
) -> "cirq.OP_TREE"
Adds noise to an individual operation.
Args |
operation
|
The operation to make noisy.
|
Returns |
An OP_TREE corresponding to the noisy operations implementing the
noisy version of the given operation.
|