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

E0=1pI,E1=pX.
Parameters:
  • prob (float | ndarray | Tensor) – probability p.

  • 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

E0=1pI,E1=pZ.
Parameters:
  • prob (float | ndarray | Tensor) – probability p.

  • 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

E0=1pI,E1=pY.
Parameters:
  • prob (float | ndarray | Tensor) – probability p.

  • 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

E0=[1001γ],E1=[0γ00].
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

E0=p[1001γ],E1=p[0γ00],E2=1p[1γ001],E3=1p[00γ0].
Parameters:
  • gamma (float | ndarray | Tensor) – coefficient γ.

  • prob (float | ndarray | Tensor) – probability p.

  • 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

E0=[1001γ],E1=[000γ].
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

E0=13p/4I,E1=p/4X,E2=p/4Y,E3=p/4Z.
Parameters:
  • prob (float | ndarray | Tensor) – probability p.

  • 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

E0=1(D1)p/DI, where D=4n,Ek=p/Dσk, for 0<k<D.
Parameters:
  • prob (float) – probability p.

  • num_qubits (int) – number of qubits n 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 p.

  • 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

E0=[p000],E1=[0p00],E2=[00q0],E3=[000q],E4=1pqI.
Parameters:
  • prob (List[float] | ndarray | Tensor) – list of two probabilities of resetting to state |0 and |1.

  • 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 T1 and T2 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]

paddle_quantum.channel.representation.replacement_choi(sigma, dtype=None)

Choi representation of a replacement channel

Parameters:
  • sigma (ndarray | Tensor | State) – output state of this channel.

  • dtype (str | None) – data type. Defaults to be None.

Returns:

a Choi operator.

Return type:

Tensor