Function Pennylane::LightningTensor::TNCuda::Util::MPSShapeCheck

Function Documentation

inline void Pennylane::LightningTensor::TNCuda::Util::MPSShapeCheck(const std::vector<std::vector<std::size_t>> &MPS_shape_dest, const std::vector<std::vector<std::size_t>> &MPS_shape_source)

Check if the provided MPS has the correct dimension for C++ backend.

Parameters
  • MPS_shape_dest – Dimension list of destination MPS.

  • MPS_shape_source – Dimension list of incoming MPS.