18 lines
254 B
C++
18 lines
254 B
C++
|
#include "Qubit.h"
|
||
|
|
||
|
Qubit::Qubit(const ComplexNumber& alpha, const ComplexNumber& beta)
|
||
|
: mAlpha(alpha),
|
||
|
mBeta(beta)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
const ComplexNumber& Qubit::getAlpha() const
|
||
|
{
|
||
|
return mAlpha;
|
||
|
}
|
||
|
|
||
|
const ComplexNumber& Qubit::getBeta() const
|
||
|
{
|
||
|
return mBeta;
|
||
|
}
|