ryankert01 opened a new issue, #770: URL: https://github.com/apache/mahout/issues/770
- Description: The functions execute_circuit and get_final_state_vector modify the input circuit object permanently by adding measure_all() or save_statevector(). - Impact: If a user runs a circuit and then tries to add more gates to it for a subsequent run, the circuit will fail or produce incorrect results because it already contains terminal measurement operations. - Fix: Use working_circuit = circuit.copy() at the start of these functions. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
