Add simple simulator stub.
This commit is contained in:
parent
a74dfd5f5f
commit
426ea55b3b
23 changed files with 139 additions and 11 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "ComplexNumber.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class Qubit
|
||||
{
|
||||
public:
|
||||
|
@ -14,6 +16,8 @@ public:
|
|||
bool isIn0State() const;
|
||||
|
||||
bool isIn1State() const;
|
||||
|
||||
std::string toString(std::size_t precision=3) const;
|
||||
private:
|
||||
ComplexNumber mAlpha;
|
||||
ComplexNumber mBeta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue