Add simple simulator stub.
This commit is contained in:
parent
a74dfd5f5f
commit
426ea55b3b
23 changed files with 139 additions and 11 deletions
|
@ -3,4 +3,15 @@
|
|||
const std::vector<Qubit>& QuantumState::getData() const
|
||||
{
|
||||
return mState;
|
||||
}
|
||||
|
||||
std::string QuantumState::toString() const
|
||||
{
|
||||
std::string out;
|
||||
std::size_t count{ 0 };
|
||||
for (const auto& qubit : mState)
|
||||
{
|
||||
out += "|" + qubit.toString() + "\n";
|
||||
}
|
||||
return out;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue