circuit_size_from_string#

cuquantum.bindings.custabilizer.circuit_size_from_string(intptr_t handle, circuit_string) int64_t[source]#

Returns the size of the device buffer required for a circuit.

Parameters:
  • handle (intptr_t) – Library handle.

  • circuit_string (str) – String representation of the circuit.

Returns:

Size of the buffer in bytes.

Return type:

int64_t