Class QuantumGate_OneQubitRotation

Inheritance Relationships

Base Type

  • public QuantumGateBase

Derived Types

Class Documentation

class QuantumGate_OneQubitRotation : public QuantumGateBase

Class of rotation gate for one qubit

Subclassed by ClsRXGate, ClsRYGate, ClsRZGate

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_OneQubitRotation::T_UPDATE_FUNC(UINT, double, CTYPE *, ITYPE)
typedef void() QuantumGate_OneQubitRotation::T_GPU_UPDATE_FUNC(UINT, double, void *, ITYPE, void *, UINT)

Protected Functions

QuantumGate_OneQubitRotation(double angle)

Protected Attributes

T_UPDATE_FUNC *_update_func
T_UPDATE_FUNC *_update_func_dm
T_GPU_UPDATE_FUNC *_update_func_gpu
ComplexMatrix _matrix_element
double _angle