Class QuantumGate_TwoQubit

Inheritance Relationships

Base Type

  • public QuantumGateBase

Derived Type

Class Documentation

class QuantumGate_TwoQubit : public QuantumGateBase

Class of fixed rotation angle gate for 2 qubits

Subclassed by ClsSWAPGate

Public Functions

virtual void update_quantum_state(QuantumStateBase *state)

Update quantum state

Parameters
  • state: Quantum state to be updated

virtual QuantumGateBase *copy() const

Generate a deep copy of itself

Return

Deep copy of itself

virtual void set_matrix(ComplexMatrix &matrix) const

Set gate matrix of itself

Parameters
  • matrix: Reference variables to set matrix

Protected Types

typedef void() QuantumGate_TwoQubit::T_UPDATE_FUNC(UINT, UINT, CTYPE *, ITYPE)
typedef void() QuantumGate_TwoQubit::T_GPU_UPDATE_FUNC(UINT, UINT, void *, ITYPE, void *, UINT)

Protected Functions

QuantumGate_TwoQubit()

Protected Attributes

T_UPDATE_FUNC *_update_func
T_UPDATE_FUNC *_update_func_dm
T_GPU_UPDATE_FUNC *_update_func_gpu
ComplexMatrix _matrix_element