gpu
QuICT.ops.gate_kernel.gpu ¶
apply_measuregate ¶
Measure Gate Measure.
Source code in QuICT/ops/gate_kernel/gpu.py
apply_multi_control_targ_gate ¶
apply_multi_control_targ_gate(vec: array, qubits: int, mat: array, c_indexes: list, t_index: int, sync: bool = False)
Apply dot operator for multi-control gate's matrix and state vector. only working for the gate with 1 target qubit.
Source code in QuICT/ops/gate_kernel/gpu.py
apply_multi_control_targs_gate ¶
apply_multi_control_targs_gate(vec: array, qubits: int, mat: array, c_indexes: list, t_indexes: list, sync: bool = False)
Apply dot operator for multi-control gate's matrix and state vector. only working for the gate with 2 target qubit.
Source code in QuICT/ops/gate_kernel/gpu.py
apply_rccxgate ¶
Apply dot operator between reverse matrix (8x8) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
apply_resetgate ¶
Measure Gate Measure.
Source code in QuICT/ops/gate_kernel/gpu.py
control_cctarg ¶
Apply dot operator between control matrix (8x8) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
control_ctargs ¶
Apply dot operator between control matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
control_targ ¶
Apply dot operator between control matrix (2x2) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
ctrl_normal_targs ¶
Apply dot operator between ctrl_normal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
diagonal_ctargs ¶
Apply dot operator between control diagonal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
diagonal_more ¶
Apply dot operator between control diagonal matrix (8x8) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
diagonal_normal_targs ¶
Apply dot operator between diag_normal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
diagonal_targ ¶
Apply dot operator between diagonal matrix (2x2) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
diagonal_targs ¶
Apply dot operator between diagonal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
measured_prob_calculate ¶
Calculate the probability to measured 0.
Source code in QuICT/ops/gate_kernel/gpu.py
normal_ctargs ¶
Apply dot operator between control normal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
normal_normal_targs ¶
Apply dot operator between normal_normal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
normal_targ ¶
Apply dot operator between normal matrix (2x2) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
normal_targs ¶
Apply dot operator between normal matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
reverse_ctargs ¶
Apply dot operator between control reverse matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
reverse_more ¶
Apply dot operator between reverse matrix (8x8) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
reverse_targ ¶
Apply dot operator between reverse matrix (2x2) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
reverse_targs ¶
Apply dot operator between reverse matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
swap_targ ¶
Apply dot operator between Swap's matrix (2x2) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
swap_targs ¶
Apply dot operator between swap matrix (4x4) and state vector.
Source code in QuICT/ops/gate_kernel/gpu.py
swap_tmore ¶
Apply dot operator between control swap matrix (8x8) and state vector.