|
Maestro 0.2.5
Unified interface for quantum circuit simulation
|
#include <TensorNode.h>
Collaboration diagram for TensorNetworks::TensorNode: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 27 of file TensorNode.h.
| using TensorNetworks::TensorNode::Index = Eigen::Index |
Definition at line 29 of file TensorNode.h.
| using TensorNetworks::TensorNode::MatrixClass = Eigen::MatrixXcd |
Definition at line 30 of file TensorNode.h.
|
inline |
Definition at line 98 of file TensorNode.h.
References connections, connectionsIndices, qubits, and tensor.
Referenced by SetGate(), SetProjector(), and SetQubit().
|
inline |
Definition at line 138 of file TensorNode.h.
References connections, connectionsIndices, id, and qubits.
|
inline |
Definition at line 125 of file TensorNode.h.
References connections, connectionsIndices, id, qubits, and tensor.
|
inline |
Definition at line 109 of file TensorNode.h.
References connections, connectionsIndices, id, qubits, and tensor.
|
inline |
Definition at line 88 of file TensorNode.h.
References id.
|
inline |
Definition at line 90 of file TensorNode.h.
References qubits.
|
inline |
Definition at line 92 of file TensorNode.h.
References tensor.
|
inline |
Definition at line 32 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateTensorFromGate(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 86 of file TensorNode.h.
|
inline |
Definition at line 70 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateProjectionTensor(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 56 of file TensorNode.h.
References Clear(), connections, connectionsIndices, TensorNetworks::Factory::CreateQubit0Tensor(), TensorNetworks::Factory::CreateQubit1Tensor(), NotConnected, qubits, and tensor.
|
inline |
Definition at line 82 of file TensorNode.h.
References tensor.
| std::vector<Index> TensorNetworks::TensorNode::connections |
Definition at line 158 of file TensorNode.h.
Referenced by Clear(), Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), SetGate(), SetProjector(), and SetQubit().
| std::vector<Index> TensorNetworks::TensorNode::connectionsIndices |
Definition at line 161 of file TensorNode.h.
Referenced by Clear(), Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), SetGate(), SetProjector(), and SetQubit().
| bool TensorNetworks::TensorNode::contractsTheNeededQubit = false |
Definition at line 168 of file TensorNode.h.
| Index TensorNetworks::TensorNode::id = 0 |
Definition at line 153 of file TensorNode.h.
Referenced by Clone(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), and GetId().
|
staticconstexpr |
Definition at line 151 of file TensorNode.h.
Referenced by TensorNetworks::DumbContractor::Contract(), TensorNetworks::ForestContractor::Contract(), TensorNetworks::VerticalContractor::Contract(), TensorNetworks::TensorNetwork::Disconnect(), SetGate(), SetProjector(), and SetQubit().
| std::vector<Types::qubit_t> TensorNetworks::TensorNode::qubits |
Definition at line 156 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 163 of file TensorNode.h.
Referenced by Clear(), CloneWithADummyTensor(), CloneWithoutTensorCopy(), GetRank(), SetGate(), SetProjector(), SetQubit(), and SetSuper().