Add simple simulator stub.

This commit is contained in:
jmsgrogan 2023-01-26 15:16:46 +00:00
parent a74dfd5f5f
commit 426ea55b3b
23 changed files with 139 additions and 11 deletions

View file

@ -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;