Construct a Cirq noise model from the provided Kraus operators.
cirq_rigetti.quil_input.kraus_noise_model_to_cirq(
kraus_noise_model: Dict[Tuple[QubitDesignator, ...], List[NDArray[np.complex_]]],
defined_gates: Optional[Dict[QubitDesignator, Gate]] = None
) -> InsertionNoiseModel
Args |
kraus_noise_model
|
A dictionary where the keys are tuples of Quil gate names and qubit
indices and the values are the Kraus representation of the noise channel.
|
defined_gates
|
A dictionary mapping Quil gates to Cirq gates.
|
Returns |
A Cirq InsertionNoiseModel which applies the Kraus operators to the specified gates.
|
Raises |
Exception
|
If a QubitDesignator identifier is not an integer.
|