cuquantum.cutensornet.create_contraction_optimizer_info_from_packed_data

cuquantum.cutensornet.create_contraction_optimizer_info_from_packed_data(intptr_t handle, intptr_t tn_desc, buf, size_t size) intptr_t[source]

Create a contraction optimizer info object from the packed data.

Parameters
  • handle (intptr_t) – The library handle.

  • tn_desc (intptr_t) – The tensor network descriptor.

  • buf

    A contiguous host buffer holding the packed optimizer info. It can be

    • an int as the pointer address to the buffer

    • any Python object supporting the Python buffer protocol. In this case, it must be 1D and writable; the format would be ignored.

  • size (size_t) – The buffer size in bytes.

Returns

An opaque optimizer info handle (as Python int).

Return type

intptr_t