expectZ#

diffqc.dense.expectZ(c: Array, wires: Tuple[int]) float#

Expectation of Z measurement

Parameters
  • c (jnp.ndarray) – qubit state

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