qsim::
SimulatorAVX
#include <simulator_avx.h>
Quantum circuit simulator with AVX vectorization.
Summary
Constructors and Destructors |
|
|---|---|
SimulatorAVX
(ForArgs &&... args)
|
Public types |
|
|---|---|
State
|
using
typename StateSpace::State
|
StateSpace
|
using
StateSpaceAVX
<
For
>
|
fp_type
|
using
typename StateSpace::fp_type
|
Public functions |
|
|---|---|
ApplyControlledGate
(const std::vector< unsigned > & qs, const std::vector< unsigned > & cqs, uint64_t cmask, const fp_type *matrix, State & state) const
|
void
Applies a controlled gate using AVX instructions.
|
ApplyGate
(const std::vector< unsigned > & qs, const fp_type *matrix, State & state) const
|
void
Applies a gate using AVX instructions.
|
ExpectationValue
(const std::vector< unsigned > & qs, const fp_type *matrix, const State & state) const
|
std::complex< double >
Computes the expectation value of an operator using AVX instructions.
|
Public static functions |
|
|---|---|
SIMDRegisterSize
()
|
unsigned
|
Public types
State
typename StateSpace::State State
fp_type
typename StateSpace::fp_type fp_type
Public functions
ApplyControlledGate
void ApplyControlledGate( const std::vector< unsigned > & qs, const std::vector< unsigned > & cqs, uint64_t cmask, const fp_type *matrix, State & state ) const
Applies a controlled gate using AVX instructions.
| Details | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Parameters |
|
ApplyGate
void ApplyGate( const std::vector< unsigned > & qs, const fp_type *matrix, State & state ) const
Applies a gate using AVX instructions.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
ExpectationValue
std::complex< double > ExpectationValue( const std::vector< unsigned > & qs, const fp_type *matrix, const State & state ) const
Computes the expectation value of an operator using AVX instructions.
| Details | |||||||
|---|---|---|---|---|---|---|---|
| Parameters |
|
||||||
| Returns |
The computed expectation value.
|
SimulatorAVX
SimulatorAVX( ForArgs &&... args )
Public static functions
SIMDRegisterSize
unsigned SIMDRegisterSize()
| Details | |
|---|---|
| Returns |
The size of SIMD register if applicable.
|