|
Maestro 0.1.0
Unified interface for quantum circuit simulation
|
The Dumb Tensor Contractor. More...
#include <DumbContractor.h>
Public Member Functions | |
| double | Contract (const TensorNetwork &network, Types::qubit_t qubit) override |
| Contract the tensor network. | |
| void | SetContractTheLowestTensorId (bool c) |
| bool | GetContractTheLowestTensorId () const |
| std::shared_ptr< ITensorContractor > | Clone () const override |
| Clone the tensor contractor. | |
| Public Member Functions inherited from TensorNetworks::BaseContractor | |
| TensorsMap | InitializeTensors (const TensorNetwork &network, Types::qubit_t qubit, std::vector< Eigen::Index > &keys, std::unordered_map< Eigen::Index, Eigen::Index > &keysKeys, bool fillKeys=true, bool contract=true) override |
| template<class PassedTensorsMap = TensorsMap> | |
| Eigen::Index | ContractNodes (Types::qubit_t qubit, PassedTensorsMap &tensors, Eigen::Index tensor1Id, Eigen::Index tensor2Id, Eigen::Index resultRank) |
| size_t | GetMaxTensorRank () const override |
| void | SetMultithreading (bool multithreading=true) override |
| Enable/disable multithreading. | |
| bool | GetMultithreading () const override |
| Get the multithreading flag. | |
Additional Inherited Members | |
| Public Types inherited from TensorNetworks::BaseContractor | |
| using | TensorsMap = ITensorContractor::TensorsMap |
| Public Types inherited from TensorNetworks::ITensorContractor | |
| using | TensorsMap |
| Static Public Member Functions inherited from TensorNetworks::BaseContractor | |
| static size_t | GetResultRank (const std::shared_ptr< TensorNode > &tensor1, const std::shared_ptr< TensorNode > &tensor2) |
| Protected Attributes inherited from TensorNetworks::BaseContractor | |
| size_t | maxTensorRank |
| The maximum rank of the tensors in the network. | |
| bool | enableMultithreading |
| A flag to indicate if multithreading should be enabled. | |
The Dumb Tensor Contractor.
Tensor contractions using the Dumb contraction method.
Definition at line 37 of file DumbContractor.h.
|
inlineoverridevirtual |
Clone the tensor contractor.
Implements TensorNetworks::ITensorContractor.
Definition at line 148 of file DumbContractor.h.
|
inlineoverridevirtual |
Contract the tensor network.
| network | The tensor network to contract. |
Implements TensorNetworks::ITensorContractor.
Definition at line 45 of file DumbContractor.h.
|
inline |
Definition at line 139 of file DumbContractor.h.
|
inline |
Definition at line 137 of file DumbContractor.h.