Class ClsPauliGate

Inheritance Relationships

Base Type

  • public QuantumGateBase

Class Documentation

class ClsPauliGate : public QuantumGateBase

A gate that operates Pauli operator for multiple qubits

Public Functions

ClsPauliGate(PauliOperator *pauli)

Constructor

Pauli operator used is released in class

Parameters
  • pauli: Pauli operator

virtual ~ClsPauliGate()

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

PauliOperator *_pauli