create_leakage_frame_simulator#

cuquantum.bindings.custabilizer.create_leakage_frame_simulator(
intptr_t handle,
int64_t num_qubits,
int64_t num_shots,
int64_t num_measurements,
int64_t table_stride_major,
) intptr_t[source]#

Create a LeakageFrameSimulator.

Parameters:
  • handle (intptr_t) – Library handle.

  • num_qubits (int64_t) – Number of qubits in the Pauli and leakage tables.

  • num_shots (int64_t) – Number of samples to simulate.

  • num_measurements (int64_t) – Number of measurement bits per shot; also the row offset at which DETECTOR outputs are written into the measurement table. See CUSTABILIZER_CIRCUIT_NUM_MEASUREMENT_BITS.

  • table_stride_major (int64_t) – Stride over the major axis for all input bit tables. Specified in bytes and must be a multiple of 4.

Returns:

Pointer to the created leakage frame simulator.

Return type:

intptr_t