seemps.analysis.operators.cos_mpo#

seemps.analysis.operators.cos_mpo(n: int, a: float, dx: float, strategy: Strategy = DEFAULT_STRATEGY) MPO[source]#

cos(x) MPO.S

Parameters:
n_qubits: int

Number of qubits.

a: float

Initial value of the position interval.

dx: float

Spacing of the position interval.

strategy: Strategy

MPO strategy, defaults to DEFAULT_STRATEGY.

Returns:
MPO

cos(x) operator MPO.