Document feedback

Question document fragment

When a question document fragment contains a formula, it is displayed as a space.

Submission type
issue

It's a little complicated...

I'd like to ask someone.

PR

Just a small problem.

I can fix it online!

Please select the submission type

Problem type
Specifications and Common Mistakes

- Specifications and Common Mistakes:

- Misspellings or punctuation mistakes,incorrect formulas, abnormal display.

- Incorrect links, empty cells, or wrong formats.

- Chinese characters in English context.

- Minor inconsistencies between the UI and descriptions.

- Low writing fluency that does not affect understanding.

- Incorrect version numbers, including software package names and version numbers on the UI.

Usability

- Usability:

- Incorrect or missing key steps.

- Missing main function descriptions, keyword explanation, necessary prerequisites, or precautions.

- Ambiguous descriptions, unclear reference, or contradictory context.

- Unclear logic, such as missing classifications, items, and steps.

Correctness

- Correctness:

- Technical principles, function descriptions, supported platforms, parameter types, or exceptions inconsistent with that of software implementation.

- Incorrect schematic or architecture diagrams.

- Incorrect commands or command parameters.

- Incorrect code.

- Commands inconsistent with the functions.

- Wrong screenshots.

- Sample code running error, or running results inconsistent with the expectation.

Risk Warnings

- Risk Warnings:

- Lack of risk warnings for operations that may damage the system or important data.

Content Compliance

- Content Compliance:

- Contents that may violate applicable laws and regulations or geo-cultural context-sensitive words and expressions.

- Copyright infringement.

Please select the type of question

Problem description

Describe the bug so that we can quickly locate the problem.

mindquantum.core.gates.ThermalRelaxationChannel

View Source On Gitee
class mindquantum.core.gates.ThermalRelaxationChannel(t1: float, t2: float, gate_time: float, **kwargs)[source]

Thermal relaxation channel.

The thermal relaxation channel describes the thermal decoherence and dephasing of qubit when a quantum gate is applied, and is determined by T1, T2 and gate time.

The Choi-matrix representation of this channel is as below:

ϵ(ρ)=tr1[Λ(ρTI)],Λ=(ϵT100ϵT201ϵT1000000ϵT2001)where ϵT1=eTg/T1,ϵT2=eTg/T2

Where ρ is quantum state as density matrix type; Λ is Choi matrix, T1 is thermal relaxation time of qubit, T2 is dephasing time of qubit, Tg is gate time.

Parameters
  • t1 (int, float) – T1 of the qubit.

  • t2 (int, float) – T2 of the qubit.

  • gate_time (int, float) – time of the quantum gate.

Examples

>>> from mindquantum.core.gates import ThermalRelaxationChannel
>>> from mindquantum.core.circuit import Circuit
>>> t1 = 100000
>>> t2 = 50000
>>> gate_time = 35
>>> circ = Circuit()
>>> circ += ThermalRelaxationChannel(t1, t2, gate_time).on(0)
>>> print(circ)
      ╔═══════════════════════════════╗
q0: ──╢ TRC(t1=100000,t2=50000,tg=35) ╟───
      ╚═══════════════════════════════╝
get_cpp_obj()[source]

Get underlying C++ object.

matrix()[source]

Kraus operator of the quantum channel.

Returns

list, contains all Kraus operators of this quantum channel.