circuit_get_attribute#
-
cuquantum.
bindings. custabilizer. circuit_get_attribute( - intptr_t handle,
- intptr_t circuit,
- int attribute,
- intptr_t buffer,
- size_t size_in_bytes,
Read a single structural attribute of a
custabilizerCircuit_t.- Parameters:
handle (intptr_t) – Library handle.
circuit (intptr_t) – Circuit returned by
custabilizerCreateCircuitFromString.attribute (CircuitAttribute) – Value from
custabilizerCircuitAttributes_t.buffer (intptr_t) – Caller-owned host buffer receiving the attribute value.
size_in_bytes (size_t) – Size of
bufferin bytes; must be large enough for the attribute’s value type.
Note
To compute the attribute size, use the itemsize of the corresponding data type, which can be queried using
get_circuit_attribute_dtype().See also