Class ClsPauliRotationGate

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class ClsPauliRotationGate : public QuantumGateBase

A gate that rotates with Pauli operator for multiple qubits

Public Functions

ClsPauliRotationGate(double angle, PauliOperator *pauli)

Constructor

Pauli operator used is released in class

Parameters
  • angle: Rotation angle

  • pauli: Pauli operator

virtual ~ClsPauliRotationGate()

Destructor

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 Attributes

double _angle
PauliOperator *_pauli