Skip to content

Commit

Permalink
doc tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
obliviateandsurrender committed Jul 12, 2024
1 parent b6f1a1f commit 9016f22
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pennylane_qiskit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
from .basic_aer import BasicAerDevice, BasicSimulatorDevice
from .ibmq import IBMQDevice
from .remote import RemoteDevice
from .converter import load, load_pauli_op, load_qasm, load_qasm_from_file
from .converter import load, load_pauli_op, load_qasm, load_qasm_from_file, load_noise_model
from .runtime_devices import IBMQCircuitRunnerDevice
from .runtime_devices import IBMQSamplerDevice
19 changes: 12 additions & 7 deletions pennylane_qiskit/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1057,16 +1057,21 @@ def load_noise_model(noise_model, **kwargs) -> qml.NoiseModel:
kwargs: Optional keyword arguments for conversion of the noise model.
Keyword Arguments:
thermal_relaxation (bool): prefer conversion of ``QiskitErrors`` to thermal relaxation errors
over damping errors. Default is ``False``.
gate_times (Dict[str, float]): gate times for building thermal relaxation error.
If not provided, the default value of ``1.0`` will be used for construction.
decimals (int): number of decimal places to round the Kraus matrices for errors to.
If not provided, the default value of ``10`` is used.
atol (float): the relative tolerance parameter. Default value is ``1e-05``.
rtol (float): the absolute tolernace parameters. Defualt value is ``1e-08``.
optimize (bool): controls if intermediate optimization is used while transforming Kraus
operators to a Choi matrix, wherever required. Default is ``False``.
If not provided, the default value of ``1.0 s`` will be used for construction.
readout_error (bool): include readout error in the converted noise model. Default is ``True``.
optimize (bool): controls if a contraction order optimization is used for ``einsum`` while
transforming Kraus operators to a Choi matrix, wherever required. Default is ``False``.
kraus_shape (bool): use shape of the Kraus operators to display ``qml.QubitChannel``
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 for errors to.
If not provided, the default value of ``10`` is used.
- 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
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
'qiskit_op = pennylane_qiskit:load_pauli_op',
'qasm = pennylane_qiskit:load_qasm',
'qasm_file = pennylane_qiskit:load_qasm_from_file',
'qiskit_noise = pennylane_qiskit:load_noise_model',
],
},
'description': 'PennyLane plugin for Qiskit',
Expand Down

0 comments on commit 9016f22

Please sign in to comment.