Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
obliviateandsurrender committed Jul 14, 2024
1 parent 787c85e commit c2af70d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pennylane_qiskit/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,9 +1070,9 @@ def load_noise_model(noise_model, **kwargs) -> qml.NoiseModel:
instead of the complete list of matrices. Default is ``True``.
options (dict[str, Union[int, float]]): optional parameters related to tolerance and rounding:
- decimals (int): number of decimal places to round the Kraus matrices. Default is ``10``.
- atol (float): the relative tolerance parameter. Default value is ``1e-05``.
- rtol (float): the absolute tolernace parameters. Defualt value is ``1e-08``.
- **decimals** (*int*): number of decimal places to round the Kraus matrices. Default is ``10``.
- **atol** (*float*): the relative tolerance parameter. Default value is ``1e-05``.
- **rtol** (*float*): the absolute tolernace parameters. Defualt value is ``1e-08``.
Returns:
qml.NoiseModel: An equivalent noise model constructed in PennyLane
Expand Down
5 changes: 2 additions & 3 deletions pennylane_qiskit/noise_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,9 @@ def _process_depolarization(error_dict: dict, multi_pauli: bool = False) -> dict
num_terms = 4**num_wires
id_factor = num_terms / (num_terms - 1)
prob_iden = error_dict["probs"][error_dict["data"].index(["I" * num_wires])]
param = id_factor * (1 - prob_iden)
error_dict["name"] = "DepolarizingChannel"
error_dict["data"] = param / id_factor
error_dict["probs"] = param
error_dict["data"] = 1 - prob_iden
error_dict["probs"] = id_factor * (1 - prob_iden)
return error_dict

error_dict["name"] = "QubitChannel"
Expand Down

0 comments on commit c2af70d

Please sign in to comment.