|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Local single-qubit depolarizing channel on one target qubit. More...
#include <noise_operation.h>

Public Member Functions | |
| void | apply_to_density (const double *params, int param_count, DensityMatrix &rho) override |
| Apply this operation to the density matrix. More... | |
| std::unique_ptr< IDensityOperation > | clone () const override |
| Create a deep copy of this operation. More... | |
| double | get_error_rate () const |
| std::string | get_name () const override |
| Get operation name for debugging/display. More... | |
| int | get_parameter_num () const override |
| Get number of free parameters this operation requires. More... | |
| int | get_target_qbit () const |
| bool | is_parametric () const |
| bool | is_unitary () const override |
| Check if this is a unitary operation (gate) or non-unitary (noise) More... | |
| LocalDepolarizingOp (int target_qbit, double error_rate) | |
| LocalDepolarizingOp (int target_qbit) | |
Private Member Functions | |
| void | apply_local_depolarizing (DensityMatrix &rho, double error_rate) |
Private Attributes | |
| double | fixed_error_rate_ |
| bool | is_parametric_ |
| int | target_qbit_ |
Local single-qubit depolarizing channel on one target qubit.
Matches the Qiskit single-qubit depolarizing parameterization: Ï -> (1 - p) Ï + p * I/2 on the target subsystem.
Definition at line 107 of file noise_operation.h.
| squander::density::LocalDepolarizingOp::LocalDepolarizingOp | ( | int | target_qbit, |
| double | error_rate | ||
| ) |
|
explicit |
Definition at line 126 of file noise_operation.cpp.
|
private |
Definition at line 154 of file noise_operation.cpp.


|
overridevirtual |
Apply this operation to the density matrix.
| params | Pointer to this operation's parameters (may be nullptr if param_count=0) |
| param_count | Number of parameters for this operation |
| rho | The density matrix to modify in-place |
Implements squander::density::IDensityOperation.
Definition at line 134 of file noise_operation.cpp.

|
overridevirtual |
Create a deep copy of this operation.
Implements squander::density::IDensityOperation.
Definition at line 200 of file noise_operation.cpp.

|
inline |
Definition at line 121 of file noise_operation.h.
|
inlineoverridevirtual |
Get operation name for debugging/display.
Implements squander::density::IDensityOperation.
Definition at line 116 of file noise_operation.h.

|
inlineoverridevirtual |
Get number of free parameters this operation requires.
Implements squander::density::IDensityOperation.
Definition at line 115 of file noise_operation.h.
|
inline |
Definition at line 120 of file noise_operation.h.
|
inline |
Definition at line 122 of file noise_operation.h.
|
inlineoverridevirtualinherited |
Check if this is a unitary operation (gate) or non-unitary (noise)
Implements squander::density::IDensityOperation.
Definition at line 38 of file noise_operation.h.

|
private |
Definition at line 126 of file noise_operation.h.
|
private |
Definition at line 127 of file noise_operation.h.
|
private |
Definition at line 125 of file noise_operation.h.
1.8.13