cirq_aqt.aqt_device.AQTNoiseModel
A noise model for the AQT ion trap
cirq_aqt.aqt_device.AQTNoiseModel()
Methods
from_noise_model_like
@classmethod
from_noise_model_like(
noise: 'cirq.NOISE_MODEL_LIKE'
) -> 'cirq.NoiseModel'
Transforms an object into a noise model if unambiguously possible.
Raises |
ValueError
|
If noise is a cirq.Gate that acts on more than one
qubit.
|
TypeError
|
The input is not a cirq.NOISE_MODE_LIKE .
|
get_crosstalk_operation
View source
get_crosstalk_operation(
operation: cirq.Operation, system_qubits: Sequence[cirq.Qid]
) -> List[cirq.Operation]
Returns a list of operations including crosstalk
Args |
operation
|
Ideal operation
|
system_qubits
|
Tuple of line qubits
|
Returns |
List of operations including crosstalk
|
is_virtual_moment
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
|
cirq.Moment 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.Moment, system_qubits: Sequence[cirq.Qid]
) -> List[cirq.Operation]
Returns a list of noisy moments.
The model includes
- Depolarizing noise with gate-dependent strength
- Crosstalk between neighboring qubits
Args |
moment
|
ideal moment
|
system_qubits
|
List of qubits
|
Returns |
List of ideal and noisy moments
|
noisy_moments
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
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]