Skip to content

Commit

Permalink
adding linespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivansh20128 committed Nov 30, 2024
1 parent be6a76c commit 675d9a4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mitiq/cdr/cdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,30 @@ def execute_with_cdr(
scale_noise: scale_noise: Function for scaling the noise of a quantum
circuit.
scale_factors: Factors by which to scale the noise.
- When 1.0 is the only scale factor, the method is known as CDR.
- Note: When scale factors larger than 1.0 are provided, the method
is known as "variable-noise CDR."
kwargs: Available keyword arguments are:
- method_select (string): Specifies the method used to select the
non-Clifford gates to replace when constructing the
near-Clifford training circuits. Can be 'uniform' or
'gaussian'.
- method_replace (string): Specifies the method used to replace
the selected non-Clifford gates with a Clifford when
constructing the near-Clifford training circuits. Can be
'uniform', 'gaussian', or 'closest'.
- sigma_select (float): Width of the Gaussian distribution used for
``method_select='gaussian'``.
- sigma_replace (float): Width of the Gaussian distribution used
for ``method_replace='gaussian'``.
- random_state (int): Seed for sampling.
"""
# Handle keyword arguments for generating training circuits.
Expand Down Expand Up @@ -201,22 +209,30 @@ def mitigate_executor(
scale_noise: scale_noise: Function for scaling the noise of a quantum
circuit.
scale_factors: Factors by which to scale the noise.
- When 1.0 is the only scale factor, the method is known as CDR.
- Note: When scale factors larger than 1.0 are provided, the method
is known as "variable-noise CDR."
kwargs: Available keyword arguments are:
- method_select (string): Specifies the method used to select the
non-Clifford gates to replace when constructing the
near-Clifford training circuits. Can be 'uniform' or
'gaussian'.
- method_replace (string): Specifies the method used to replace
the selected non-Clifford gates with a Clifford when
constructing the near-Clifford training circuits. Can be
'uniform', 'gaussian', or 'closest'.
- sigma_select (float): Width of the Gaussian distribution used for
``method_select='gaussian'``.
- sigma_replace (float): Width of the Gaussian distribution used
for ``method_replace='gaussian'``.
- random_state (int): Seed for sampling."""
executor_obj = Executor(executor)
if not executor_obj.can_batch:
Expand Down

0 comments on commit 675d9a4

Please sign in to comment.