|
Sequential Quantum Gate Decomposer
v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
Phase damping channel (T2 dephasing): loss of coherence. 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_lambda () 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... | |
| PhaseDampingOp (int target_qbit, double lambda) | |
| Create phase damping with fixed lambda. More... | |
| PhaseDampingOp (int target_qbit) | |
| Create parametric phase damping (1 parameter) More... | |
Private Member Functions | |
| void | apply_phase_damping (DensityMatrix &rho, double lambda) |
Private Attributes | |
| double | fixed_lambda_ |
| bool | is_parametric_ |
| int | target_qbit_ |
Phase damping channel (T2 dephasing): loss of coherence.
Models phase randomization without energy loss. Represents decoherence in real quantum systems where the environment measures the qubit in the computational basis.
Kraus operators:
where λ = 1 - exp(-t/T2) is the dephasing parameter.
Properties:
Can be parametric (λ from parameter array) or fixed.
Definition at line 208 of file noise_operation.h.
| squander::density::PhaseDampingOp::PhaseDampingOp | ( | int | target_qbit, |
| double | lambda | ||
| ) |
Create phase damping with fixed lambda.
| target_qbit | Target qubit index |
| lambda | Dephasing parameter λ = 1 - exp(-t/T2) â [0, 1] |
Definition at line 320 of file noise_operation.cpp.

|
explicit |
Create parametric phase damping (1 parameter)
| target_qbit | Target qubit index |
Definition at line 330 of file noise_operation.cpp.
|
private |
Definition at line 358 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 337 of file noise_operation.cpp.


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

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


|
inlineoverridevirtual |
Get number of free parameters this operation requires.
Implements squander::density::IDensityOperation.
Definition at line 226 of file noise_operation.h.
|
inline |
Definition at line 232 of file noise_operation.h.
|
inline |
Definition at line 234 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 238 of file noise_operation.h.
|
private |
Definition at line 239 of file noise_operation.h.
|
private |
Definition at line 237 of file noise_operation.h.
1.8.13