QuantumCircuits

Documentation for QuantumCircuits.

QuantumCircuits.EastModelHamiltonian — Type

A struct containing the parameters of the East Model.

The form of H represented by this struct is

\[\mathcal{H} = -e^{-s} \sqrt{c(1-c)} \left [ X_1 + \sum_{j=2}^N n_{j-1}X_j \right ] + (1-2c)\left [ n_1 + \sum_{j=2}^N n_{j-1}n_j + c \sum_{j=2}^N n_{j-1}\right ] + c\]

We precompute the scalars A and B such that

\[\begin{align*} A &= -e^{-s} \sqrt{c(1-c)} \\ B &= (1-2c) \end{align*}\]

source
QuantumCircuits.TFIMHamiltonian — Type

A struct containing the parameters of the Transverse Field Ising Model.

The form of H represented by this struct is

\[\mathcal{H} = -J \left ( \sum_{\langle i,j\rangle} \sigma_z^{(i)}\sigma_z^{(j)} + g \sum_i \sigma_x^{(i)} + h \sum_i \sigma_z^{(i)} \right ).\]

source
QuantumCircuits.apply — Method
Applies the given circuit to the state ψ.

The original state is not modified, unlike in the apply! version.

source