qml.labs.phox.bitflip_expval

bitflip_expval(generators, params, ops)[source]

Compute expectation value for the Bitflip noise model.

Parameters:
  • generators (ArrayLike) – Binary matrix of shape (n_generators, n_qubits).

  • params (ArrayLike) – Error probabilities/parameters $ heta$.

  • ops (ArrayLike) – Binary matrix representing Pauli Z operators.

Returns:

A tuple containing:
  • Expectation values.

  • A zero array for standard error (since this is analytical).

Return type:

tuple[jnp.ndarray, jnp.ndarray]