expectX#

diffqc.sparse.expectX(c: Array, wires: Tuple[int]) float#

Expectation of X measurement

Parameters
  • c (jnp.ndarray) – qubit state

  • wire (tuple of ints) – wires to measure. len(wires) must be 1