QCMaterial

QCMaterial.apply_qubit_opFunction

Apply a qubit operator op to |stateket> and fit the result with circuit * |statebra>. The circuit object will be updated on exit. The squared norm of op * |state_ket> will be returned.

source