Class CirqQsimCPU

Inheritance Relationships

Base Type

Class Documentation

class CirqQsimCPU : public qristal::CirqQsim

CPU version of noisy qsim statevector backend.

Public Functions

inline virtual const std::string name() const override

Get the name of the backend accelerator.

Returns:

Name string

inline virtual const std::string description() const override

Get the service description.

Returns:

Description string

inline virtual const std::vector<std::string> configurationKeys() override

Get the list of available configurations.

Returns:

List of available configurations

virtual void execute(std::shared_ptr<xacc::AcceleratorBuffer> buffer, const std::shared_ptr<xacc::CompositeInstruction> compositeInstruction) override

Execute/emulate a single circuit.

Parameters:
  • buffer – Buffer to store the execution results

  • compositeInstruction – Input circuit

Private Functions

virtual void execute(std::shared_ptr<xacc::AcceleratorBuffer> buffer, const std::vector<std::shared_ptr<xacc::CompositeInstruction>> compositeInstructions) override

Execute/emulate a single circuit.

Execute/emulate an array of circuits

Parameters:
  • buffer – Buffer to store the execution results

  • compositeInstruction – Input circuit

  • buffer – Buffer to store the execution results

  • compositeInstructions – Input circuits