MatrixOperator.construct_evaluation_circuit

MatrixOperator.construct_evaluation_circuit(wave_function, statevector_mode=True, use_simulator_snapshot_mode=None, circuit_name_prefix='')[source]

Construct the circuits for evaluation.

Parameters
  • wave_function (QuantumCircuit) – the quantum circuit.

  • statevector_mode (bool) – mode

  • use_simulator_snapshot_mode (bool) – uses simulator operator mode

  • circuit_name_prefix (str, optional) – a prefix of circuit name

Returns

the circuits for computing the expectation of the operator over

the wavefunction evaluation.

Return type

list[QuantumCircuit]