expectUnitary#
- diffqc.sparse.expectUnitary(c: Array, wires: Tuple[int], U: Array) float #
Expectation of Unitary measurement
- Parameters
c (jnp.ndarray) – qubit state
wire (tuple of ints) – wires to measure.
U (jnp.ndarray) – Unitary matrix
Expectation of Unitary measurement
c (jnp.ndarray) – qubit state
wire (tuple of ints) – wires to measure.
U (jnp.ndarray) – Unitary matrix