frame_simulator_apply_circuit#

cuquantum.bindings.custabilizer.frame_simulator_apply_circuit(
intptr_t handle,
intptr_t frame_simulator,
intptr_t circuit,
int randomize_frame_after_measurement,
uint64_t seed,
intptr_t x_table_device,
intptr_t z_table_device,
intptr_t m_table_device,
intptr_t stream,
)[source]#

Run Pauli frame simulation using the circuit.

Parameters:
  • handle (intptr_t) – Library handle.

  • frame_simulator (intptr_t) – An instance of FrameSimulator with parameters consistent with the bit tables.

  • circuit (intptr_t) – A circuit that acts on at most numQubits and contains at most numMeasurements measurements.

  • randomize_frame_after_measurement (int) – Disabling the randomization is helpful in some cases to focus on the error frame propagation.

  • seed (uint64_t) – Random seed.

  • x_table_device (intptr_t) – Device buffer of the X bit table in qubit-major order. Must be of size at least numQubits * tableStrideMajor.

  • z_table_device (intptr_t) – Device buffer of the Z bit table in qubit-major order. Must be of size at least numQubits * tableStrideMajor.

  • m_table_device (intptr_t) – Device buffer of the measurement bit table in measurement-major order. Must be of size at least numMeasurements * tableStrideMajor.

  • stream (intptr_t) – CUDA stream.