Skip to main content

make_random_mps

Overloads

NameDescription
make_random_mps(integer length, integer physical_size, integer bond_size) -> ComplexMPSGenerate a random Matrix Product State (MPS) with Complex values.
make_random_mps(integer length, integer physical_size, integer bond_size, as_real as_real) -> RealMPSGenerate a random Matrix Product State (MPS) with Real values.
make_random_mps(integer length, integer physical_size, integer bond_size, as_complex as_complex) -> ComplexMPSGenerate a random Matrix Product State (MPS) with Complex values.

make_random_mps(integer length, integer physical_size, integer bond_size) -> ComplexMPS

Generate a random Matrix Product State (MPS) with Complex values.

Parameters

  • length: Number of sites in the MPS chain.
  • physical_size: Dimension of the physical index at each site.
  • bond_size: Maximum bond dimension between adjacent sites.

Returns

A random ComplexMPS with the specified dimensions. Each site tensor has shape [bond_size, physical_size, bond_size].

make_random_mps(integer length, integer physical_size, integer bond_size, as_real as_real) -> RealMPS

Generate a random Matrix Product State (MPS) with Real values.

Parameters

  • length: Number of sites in the MPS chain.
  • physical_size: Dimension of the physical index at each site.
  • bond_size: Maximum bond dimension between adjacent sites.
  • as_real: The desired scalar type

Returns

A random RealMPS with the specified dimensions. Each site tensor has shape [bond_size, physical_size, bond_size].

make_random_mps(integer length, integer physical_size, integer bond_size, as_complex as_complex) -> ComplexMPS

Generate a random Matrix Product State (MPS) with Complex values.

Parameters

  • length: Number of sites in the MPS chain.
  • physical_size: Dimension of the physical index at each site.
  • bond_size: Maximum bond dimension between adjacent sites.
  • as_complex: The desired scalar type

Returns

A random ComplexMPS with the specified dimensions. Each site tensor has shape [bond_size, physical_size, bond_size].