Skip to main content

make_random_mpo

Overloads

NameDescription
make_random_mpo(integer length, integer physical_size, integer bond_size) -> ComplexMPOGenerate a random Matrix Product Operator (MPO) with Complex values.
make_random_mpo(integer length, integer physical_size, integer bond_size, as_complex as_complex) -> ComplexMPOGenerate a random Matrix Product Operator (MPO) with Complex values.
make_random_mpo(integer length, integer physical_size, integer bond_size, as_real as_real) -> RealMPOGenerate a random Matrix Product Operator (MPO) with Real values.

make_random_mpo(integer length, integer physical_size, integer bond_size) -> ComplexMPO

Generate a random Matrix Product Operator (MPO) with Complex values.

Parameters

  • length: Number of sites in the MPO chain.
  • physical_size: Dimension of the physical (input/output) indices at each site.
  • bond_size: Maximum bond dimension between adjacent sites.

Returns

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

make_random_mpo(integer length, integer physical_size, integer bond_size, as_complex as_complex) -> ComplexMPO

Generate a random Matrix Product Operator (MPO) with Complex values.

Parameters

  • length: Number of sites in the MPO chain.
  • physical_size: Dimension of the physical (input/output) indices at each site.
  • bond_size: Maximum bond dimension between adjacent sites.
  • as_complex:

Returns

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

make_random_mpo(integer length, integer physical_size, integer bond_size, as_real as_real) -> RealMPO

Generate a random Matrix Product Operator (MPO) with Real values.

Parameters

  • length: Number of sites in the MPO chain.
  • physical_size: Dimension of the physical (input/output) indices at each site.
  • bond_size: Maximum bond dimension between adjacent sites.
  • as_real:

Returns

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