File SingleQubitGateHelper.hpp

Parent directory (pennylane_lightning/core/src/simulators/lightning_qubit/gates/cpu_kernels/avx_common)

Definition (pennylane_lightning/core/src/simulators/lightning_qubit/gates/cpu_kernels/avx_common/SingleQubitGateHelper.hpp)

Detailed Description

A helper class for single-qubit gates

Define helper classes for AVX2/512 implementations of single-qubit gates. Depending on the wire the gate applies to, one needs to call applyInternal or applyExternal in classes implementing AVX2/512 gates. As applyInternal takes wire as a template parameters, we instantiate this function for all possible wire and call the correct one in runtime.

Includes