Apply a diagonal operator to the entire qureg
.
Apply Hamiltonian PauliHamil
.
Apply the weighted sum of Pauli products.
Computes the Hilbert-Schmidt scalar product.
Computes the expected value of the diagonal operator op
.
Computes the Hilbert Schmidt distance between two density matrices.
Computes the inner product of two equal-size state vectors.
Obtain the seeds presently used in random number generation.
Initialises a ComplexMatrixN
instance to have the passed
real
and imag
values.
Overwrites the entire DiagonalOp
with the given elements.
Populates the diagonal operator \p op to be equivalent to the given Pauli
Hamiltonian
Initialize
PauliHamil
instance with the given term
coefficients
Print the Hamiltonian hamil
to screen.
Seeds the random number generator with a custom array of key(s).
Seed the random number generator.
Modifies a subset of elements of DiagonalOp
.
Set qureg
to a weighted sum of states.
Update the GPU memory with the current values in op
.