par_evaluate(params, dtype=None)[source]

Evaluate an Operation parameter sequence.

Any parameters descending from sympy.Basic are evaluated, others are returned as-is. Evaluation means that free and measured parameters are replaced by their numeric values. NumPy object arrays are evaluated elementwise.

Alternatively, evaluates a single parameter and returns its value.

  • params (Sequence[Any]) – parameters to evaluate

  • dtype (None, np.dtype, tf.dtype) – NumPy or TensorFlow datatype to optionally cast atomic symbols to before evaluating the parameter expression. Note that if the atom is a TensorFlow tensor, a NumPy datatype can still be passed; tensorflow.dtype.as_dtype() is used to determine the corresponding TensorFlow dtype internally.


evaluated parameters

Return type