Maestro 0.1.0
Unified interface for quantum circuit simulation
Loading...
Searching...
No Matches
TensorNetworks::Factory Class Reference

The factory for gates tensors. More...

#include <Factory.h>

Public Types

using MatrixClass = Eigen::MatrixXcd

Static Public Member Functions

static std::shared_ptr< Utils::Tensor<> > CreateTensorFromGate (const QC::Gates::QuantumGateWithOp< MatrixClass > &gate)
static std::shared_ptr< Utils::Tensor<> > CreateProjectionTensor (bool onZero=true)
static std::shared_ptr< Utils::Tensor<> > CreateQubit0Tensor ()
static std::shared_ptr< Utils::Tensor<> > CreateQubit1Tensor ()
static std::shared_ptr< Utils::Tensor<> > CreateTensorFromGateOnOneQubit (const QC::Gates::QuantumGateWithOp< MatrixClass > &gate)
static std::shared_ptr< Utils::Tensor<> > CreateTensorFromGateOnTwoQubits (const QC::Gates::QuantumGateWithOp< MatrixClass > &gate)

Detailed Description

The factory for gates tensors.

Creates the tensors for the gates.

Definition at line 27 of file TensorNetworks/Factory.h.

Member Typedef Documentation

◆ MatrixClass

using TensorNetworks::Factory::MatrixClass = Eigen::MatrixXcd

Definition at line 29 of file TensorNetworks/Factory.h.

Member Function Documentation

◆ CreateProjectionTensor()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateProjectionTensor ( bool onZero = true)
inlinestatic

Definition at line 45 of file TensorNetworks/Factory.h.

◆ CreateQubit0Tensor()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateQubit0Tensor ( )
inlinestatic

Definition at line 61 of file TensorNetworks/Factory.h.

◆ CreateQubit1Tensor()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateQubit1Tensor ( )
inlinestatic

Definition at line 73 of file TensorNetworks/Factory.h.

◆ CreateTensorFromGate()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateTensorFromGate ( const QC::Gates::QuantumGateWithOp< MatrixClass > & gate)
inlinestatic

Definition at line 32 of file TensorNetworks/Factory.h.

◆ CreateTensorFromGateOnOneQubit()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateTensorFromGateOnOneQubit ( const QC::Gates::QuantumGateWithOp< MatrixClass > & gate)
inlinestatic

Definition at line 85 of file TensorNetworks/Factory.h.

◆ CreateTensorFromGateOnTwoQubits()

std::shared_ptr< Utils::Tensor<> > TensorNetworks::Factory::CreateTensorFromGateOnTwoQubits ( const QC::Gates::QuantumGateWithOp< MatrixClass > & gate)
inlinestatic

Definition at line 104 of file TensorNetworks/Factory.h.


The documentation for this class was generated from the following file: