paddle_quantum.channel.representation
The library of representations of channels
- paddle_quantum.channel.representation.bit_flip_kraus(prob, dtype=None)
Kraus representation of a bit flip channel with form
- Parameters:
prob (float | ndarray | Tensor) – probability
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.phase_flip_kraus(prob, dtype=None)
Kraus representation of a phase flip channel with form
- Parameters:
prob (float | ndarray | Tensor) – probability
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.bit_phase_flip_kraus(prob, dtype=None)
Kraus representation of a bit-phase flip channel with form
- Parameters:
prob (float | ndarray | Tensor) – probability
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.amplitude_damping_kraus(gamma, dtype=None)
Kraus representation of an amplitude damping channel with form
- Parameters:
gamma (float | ndarray | Tensor) – coefficient
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.generalized_amplitude_damping_kraus(gamma, prob, dtype=None)
Kraus representation of a generalized amplitude damping channel with form
- Parameters:
gamma (float | ndarray | Tensor) – coefficient
.prob (float | ndarray | Tensor) – probability
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.phase_damping_kraus(gamma, dtype=None)
Kraus representation of a phase damping channel with form
- Parameters:
gamma (float | ndarray | Tensor) – coefficient
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.depolarizing_kraus(prob, dtype=None)
Kraus representation of a depolarizing channel with form
- Parameters:
prob (float | ndarray | Tensor) – probability
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.generalized_depolarizing_kraus(prob, num_qubits, dtype=None)
Kraus representation of a generalized depolarizing channel with form
- Parameters:
prob (float) – probability
.num_qubits (int) – number of qubits
of this channel.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.pauli_kraus(prob, dtype=None)
Kraus representation of a pauli channel
- Parameters:
prob (List[float] | ndarray | Tensor) – a list of three probabilities corresponding to X, Y, Z gate
.dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.reset_kraus(prob, dtype=None)
Kraus representation of a reset channel with form
- Parameters:
prob (List[float] | ndarray | Tensor) – list of two probabilities of resetting to state
and .dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators
- Return type:
List[Tensor]
- paddle_quantum.channel.representation.thermal_relaxation_kraus(const_t, exec_time, dtype=None)
Kraus representation of a thermal relaxation channel
- Parameters:
const_t (List[float] | ndarray | Tensor) – list of
and relaxation time in microseconds.exec_time (List[float] | ndarray | Tensor) – quantum gate execution time in the process of relaxation in nanoseconds.
dtype (str | None) – data type. Defaults to be
None
.
- Returns:
a list of Kraus operators.
- Return type:
List[Tensor]