#include <TensorNetwork.h>
|
| using | Index = Eigen::Index |
Definition at line 27 of file TensorNetwork.h.
◆ Index
◆ TensorNetwork() [1/2]
| TensorNetworks::TensorNetwork::TensorNetwork |
( |
| ) |
|
|
delete |
◆ TensorNetwork() [2/2]
| TensorNetworks::TensorNetwork::TensorNetwork |
( |
size_t | numQubits | ) |
|
|
inline |
Constructor.
- Parameters
-
| numQubits | The number of qubits in the network. |
Definition at line 38 of file TensorNetwork.h.
◆ AddGate()
◆ AddProjector()
| void TensorNetworks::TensorNetwork::AddProjector |
( |
Types::qubit_t | qubit, |
|
|
bool | zero = true ) |
|
inline |
◆ AddProjectorOp()
| void TensorNetworks::TensorNetwork::AddProjectorOp |
( |
Types::qubit_t | qubit, |
|
|
bool | zero = true, |
|
|
double | prob = 1. ) |
|
inline |
◆ Clear()
| void TensorNetworks::TensorNetwork::Clear |
( |
| ) |
|
|
inline |
◆ ClearSavedState()
| void TensorNetworks::TensorNetwork::ClearSavedState |
( |
| ) |
|
|
inline |
◆ ClearSavedStateMinimal()
| void TensorNetworks::TensorNetwork::ClearSavedStateMinimal |
( |
| ) |
|
|
inline |
◆ Clone()
| std::unique_ptr< TensorNetwork > TensorNetworks::TensorNetwork::Clone |
( |
| ) |
const |
|
inline |
< A map between qubits (as identified from outside) and the qubits group ids
< A map between qubits group ids and the qubits in that group
< A map between qubits (as identified from outside) and the qubits group ids
< A map between qubits group ids and the qubits in that group
Definition at line 425 of file TensorNetwork.h.
◆ Connect()
| void TensorNetworks::TensorNetwork::Connect |
( |
| ) |
|
|
inline |
◆ Disconnect()
| void TensorNetworks::TensorNetwork::Disconnect |
( |
| ) |
|
|
inline |
◆ ExpectationValue()
| double TensorNetworks::TensorNetwork::ExpectationValue |
( |
const std::string & | pauliString | ) |
|
|
inline |
Returns the expected value of a Pauli string.
Use it to obtain the expected value of a Pauli string. The Pauli string is a string of characters representing the Pauli operators, e.g. "XIZY". The length of the string should be less or equal to the number of qubits (if it's less, it's completed with I).
- Parameters
-
| pauliString | The Pauli string to obtain the expected value for. |
- Returns
- The expected value of the specified Pauli string.
Definition at line 123 of file TensorNetwork.h.
◆ getBasisStateProbability()
| double TensorNetworks::TensorNetwork::getBasisStateProbability |
( |
size_t | outcome | ) |
|
|
inline |
◆ GetContractor()
| std::shared_ptr< ITensorContractor > TensorNetworks::TensorNetwork::GetContractor |
( |
| ) |
const |
|
inline |
◆ GetMultithreading()
| bool TensorNetworks::TensorNetwork::GetMultithreading |
( |
| ) |
const |
|
inline |
Get the multithreading flag.
Returns the multithreading flag.
- Returns
- The multithreading flag.
Definition at line 423 of file TensorNetwork.h.
◆ GetNumQubits()
| size_t TensorNetworks::TensorNetwork::GetNumQubits |
( |
| ) |
const |
|
inline |
◆ GetQubitGroup()
◆ GetTensors()
| const std::vector< std::shared_ptr< TensorNode > > & TensorNetworks::TensorNetwork::GetTensors |
( |
| ) |
const |
|
inline |
◆ Measure()
◆ Probability()
| double TensorNetworks::TensorNetwork::Probability |
( |
Types::qubit_t | qubit, |
|
|
bool | zero = true ) |
|
inline |
◆ RestoreSavedStateDestructive()
| void TensorNetworks::TensorNetwork::RestoreSavedStateDestructive |
( |
| ) |
|
|
inline |
◆ RestoreSavedStateMinimalDestructive()
| void TensorNetworks::TensorNetwork::RestoreSavedStateMinimalDestructive |
( |
| ) |
|
|
inline |
◆ RestoreState()
| void TensorNetworks::TensorNetwork::RestoreState |
( |
| ) |
|
|
inline |
◆ RestoreStateMinimal()
| void TensorNetworks::TensorNetwork::RestoreStateMinimal |
( |
| ) |
|
|
inline |
◆ SaveState()
| void TensorNetworks::TensorNetwork::SaveState |
( |
| ) |
|
|
inline |
◆ SaveStateMinimal()
| void TensorNetworks::TensorNetwork::SaveStateMinimal |
( |
| ) |
|
|
inline |
◆ SetContractor()
| void TensorNetworks::TensorNetwork::SetContractor |
( |
const std::shared_ptr< ITensorContractor > & | c | ) |
|
|
inline |
◆ SetMultithreading()
| void TensorNetworks::TensorNetwork::SetMultithreading |
( |
bool | multithreading = true | ) |
|
|
inline |
Enable/disable multithreading.
Enable/disable multithreading. Default is enabled.
- Parameters
-
| multithreading | A flag to indicate if multithreading should be enabled. |
Definition at line 412 of file TensorNetwork.h.
The documentation for this class was generated from the following file: