|
Maestro 0.3.11
Unified interface for quantum circuit simulation
|
#include <TensorNode.h>
Public Types | |
| using | Index = Eigen::Index |
| using | MatrixClass = Eigen::MatrixXcd |
Public Member Functions | |
| void | Clear () |
| std::shared_ptr< TensorNode > | Clone () const |
| std::shared_ptr< TensorNode > | CloneWithADummyTensor () const |
| std::shared_ptr< TensorNode > | CloneWithoutTensorCopy () const |
| Index | GetId () const |
| size_t | GetQubitsNumber () const |
| size_t | GetRank () const |
| void | SetGate (const QC::Gates::QuantumGateWithOp< MatrixClass > &gate, Types::qubit_t q1, Types::qubit_t q2=0) |
| void | SetId (Index Id) |
| void | SetProjector (Types::qubit_t q, bool zero=true) |
| void | SetQubit (Types::qubit_t q, bool zero=true) |
| void | SetSuper () |
Public Attributes | |
| std::vector< Index > | connections |
| std::vector< Index > | connectionsIndices |
| bool | contractsTheNeededQubit = false |
| Index | id = 0 |
| std::vector< Types::qubit_t > | qubits |
| std::shared_ptr< Utils::Tensor<> > | tensor |
Static Public Attributes | |
| static constexpr Index | NotConnected = -1 |
Definition at line 28 of file TensorNode.h.
| using TensorNetworks::TensorNode::Index = Eigen::Index |
Definition at line 31 of file TensorNode.h.
| using TensorNetworks::TensorNode::MatrixClass = Eigen::MatrixXcd |
Definition at line 32 of file TensorNode.h.
|
inline |
Definition at line 116 of file TensorNode.h.
References connections, connectionsIndices, qubits, and tensor.
Referenced by SetGate(), SetProjector(), and SetQubit().
|
inline |
Definition at line 159 of file TensorNode.h.
References connections, connectionsIndices, id, and qubits.
|
inline |
Definition at line 145 of file TensorNode.h.
References connections, connectionsIndices, id, qubits, and tensor.
|
inline |
Definition at line 128 of file TensorNode.h.
References connections, connectionsIndices, id, qubits, and tensor.
|
inline |
Definition at line 98 of file TensorNode.h.
References id.
|
inline |
Definition at line 103 of file TensorNode.h.
References qubits.
|
inline |
Definition at line 108 of file TensorNode.h.
References tensor.
|
inline |
Definition at line 34 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateTensorFromGate(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 93 of file TensorNode.h.
|
inline |
Definition at line 74 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateProjectionTensor(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 59 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateQubit0Tensor(), TensorNetworks::Factory::CreateQubit1Tensor(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 87 of file TensorNode.h.
References tensor.
| std::vector<Index> TensorNetworks::TensorNode::connections |
Definition at line 178 of file TensorNode.h.
Referenced by Clear(), Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), SetGate(), SetProjector(), and SetQubit().
| std::vector<Index> TensorNetworks::TensorNode::connectionsIndices |
Definition at line 180 of file TensorNode.h.
Referenced by Clear(), Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), SetGate(), SetProjector(), and SetQubit().
| bool TensorNetworks::TensorNode::contractsTheNeededQubit = false |
Definition at line 187 of file TensorNode.h.
| Index TensorNetworks::TensorNode::id = 0 |
Definition at line 175 of file TensorNode.h.
Referenced by Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), and GetId().
|
staticconstexpr |
Definition at line 173 of file TensorNode.h.
Referenced by TensorNetworks::DumbContractor::Contract(), TensorNetworks::VerticalContractor::Contract(), TensorNetworks::TensorNetwork::Disconnect(), SetGate(), SetProjector(), and SetQubit().
| std::vector<Types::qubit_t> TensorNetworks::TensorNode::qubits |
Definition at line 177 of file TensorNode.h.
Referenced by Clear(), Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), GetQubitsNumber(), SetGate(), SetProjector(), and SetQubit().
| std::shared_ptr<Utils::Tensor<> > TensorNetworks::TensorNode::tensor |
Definition at line 182 of file TensorNode.h.
Referenced by Clear(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), GetRank(), SetGate(), SetProjector(), SetQubit(), and SetSuper().