create_circuit_from_string#

cuquantum.bindings.custabilizer.create_circuit_from_string(
intptr_t handle,
circuit_string,
buffer_device,
int64_t buffer_size,
) intptr_t[source]#

Create a new circuit from a string representation.

Parameters:
  • handle (intptr_t) – Library handle.

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

  • buffer_device (bytes) – Device buffer to store the circuit.

  • buffer_size (int64_t) – Size of the device buffer in bytes.

Returns:

Pointer to the created circuit.

Return type:

intptr_t