Add simple simulator stub.
This commit is contained in:
parent
a74dfd5f5f
commit
426ea55b3b
23 changed files with 139 additions and 11 deletions
|
@ -0,0 +1,33 @@
|
|||
#include "QuantumTerminal.h"
|
||||
|
||||
QuantumTerminal::QuantumTerminal(TerminalType type, const std::string& label)
|
||||
: mLabel(label),
|
||||
mType(type)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QuantumTerminal::Type QuantumTerminal::getType() const
|
||||
{
|
||||
return mType == TerminalType::INPUT ? Type::INPUT_TERMINAL : Type::OUTPUT_TERMINAL;
|
||||
}
|
||||
|
||||
const Qubit& QuantumTerminal::getValue() const
|
||||
{
|
||||
return mValue;
|
||||
}
|
||||
|
||||
QuantumWire* QuantumTerminal::getConnection() const
|
||||
{
|
||||
return mConnection;
|
||||
}
|
||||
|
||||
void QuantumTerminal::setConnection(QuantumWire* connection)
|
||||
{
|
||||
mConnection = connection;
|
||||
}
|
||||
|
||||
void QuantumTerminal::setValue(const Qubit& value)
|
||||
{
|
||||
mValue = value;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue