Algorithms

class QFT : public xacc::IRGenerator

QFT is a realization of the AlgorithmGenerator interface that produces an XACC IR representation of the Quantum Fourier Transform.

Author

Alex McCaskey

Public Functions

std::shared_ptr<Function> generate(std::shared_ptr<AcceleratorBuffer> buffer, std::vector<InstructionParameter> parameters = std::vector<InstructionParameter>{})

Implementations of this method generate a Function IR instance corresponding to the implementation’s modeled algorithm. The algorithm is specified to operate over the provided AcceleratorBuffer and can take an optional vector of InstructionParameters.

Return

function The algorithm represented as an IR Function

Parameters
  • bits: The bits this algorithm operates on

virtual const std::string name() const

Return the name of this instance.

Return

name The string name

virtual const std::string description() const

Return the description of this instance

Return

description The description of this object.

virtual ~QFT()

The destructor

class InverseQFT : public xacc::IRGenerator

InverseQFT is a realization of the AlgorithmGenerator interface that produces an XACC IR representation of the Inverse Quantum Fourier Transform.

Public Functions

std::shared_ptr<Function> generate(std::shared_ptr<AcceleratorBuffer> buffer, std::vector<InstructionParameter> parameters = std::vector<InstructionParameter>{})

Implementations of this method generate a Function IR instance corresponding to the implementation’s modeled algorithm. The algorithm is specified to operate over the provided AcceleratorBuffer and can take an optional vector of InstructionParameters.

Return

function The algorithm represented as an IR Function

Parameters
  • bits: The bits this algorithm operates on

virtual const std::string name() const

Return the name of this instance.

Return

name The string name

virtual const std::string description() const

Return the description of this instance

Return

description The description of this object.

virtual ~InverseQFT()

The destructor