Skip to contents

A deliberately minimalist representation of a clay-humus or iron- oxide coordination complex, sized for classical simulation on a laptop and for a meaningful walk-through of quantum_vqe_fit() in the Pillar 6 vignette. Four qubits are partitioned as two metal-centre states (left pair) and two ligand states (right pair), with on-site, same-sector exchange and cross-sector hopping / tunnelling terms:

Usage

quantum_hamiltonian_organo_mineral(
  eps_fe = 0.5,
  eps_l = 0.3,
  j_fe = 0.4,
  j_l = 0.2,
  t = 0.25
)

Arguments

eps_fe, eps_l

Numeric on-site energies for the Fe-like and ligand-like sub-sectors.

j_fe, j_l

Numeric same-sector Z-Z exchange couplings.

t

Numeric cross-sector X-X hopping amplitude.

Value

An edaphos_quantum_hamiltonian with 4 qubits.

Details

$$ H = -\,\varepsilon_\mathrm{Fe}\,(Z_3 + Z_2) \; -\,\varepsilon_\mathrm{L}\,(Z_1 + Z_0) \; +\,J_\mathrm{Fe}\,Z_3 Z_2 \; +\,J_\mathrm{L}\,Z_1 Z_0 \; +\,t\,(X_3 X_0 + X_2 X_1). $$

The default parameters \((\varepsilon_\mathrm{Fe}, \varepsilon_\mathrm{L}, J_\mathrm{Fe}, J_\mathrm{L}, t) = (0.5, 0.3, 0.4, 0.2, 0.25)\) give a non-trivial entangled ground state.

Examples

if (FALSE) { # \dontrun{
om <- quantum_hamiltonian_organo_mineral()
om                                  # 4 qubits, 8 Pauli terms

# Switch the hopping off and the Hamiltonian is diagonal, i.e. a
# classical Ising energy over z in {-1, +1}^4 that you can
# minimise by hand.  Both routes give -1, all four spins up.
g <- expand.grid(z3 = c(1, -1), z2 = c(1, -1),
                 z1 = c(1, -1), z0 = c(1, -1))
min(-0.5 * (g$z3 + g$z2) - 0.3 * (g$z1 + g$z0) +
     0.4 * g$z3 * g$z2 + 0.2 * g$z1 * g$z0)                  # -1
quantum_vqe_exact(quantum_hamiltonian_organo_mineral(t = 0))  # -1

# `t` is what makes the cluster quantum: Fe-ligand tunnelling
# buys 0.215809 Ha of extra binding at the default t = 0.25 and
# the ground state stops being a product state.  With t = 0 there
# is nothing here a VQE could tell you that expand.grid() cannot.
round(quantum_vqe_exact(om), 6)                     # -1.215809
round(quantum_vqe_exact(om) - (-1), 6)              # -0.215809

# Why this is a harder target than quantum_hamiltonian_h2(): the
# first excited state sits only 0.125771 Ha above the ground
# state and is doubly degenerate, so a fit must beat that before
# "ground state" means anything.  H2's gap is 0.6127.
lv <- sort(Re(eigen(om$op$to_matrix(), only.values = TRUE)$values))
round(lv[1:4], 6)   # -1.215809 -1.090038 -1.090038 -0.795228
round(lv[2] - lv[1], 6)                             # 0.125771

# Judged that way the default fit fails.  Twenty COBYLA restarts
# of the EXACT statevector VQE -- no shot noise at all, about 1 s
# a run -- spanned 0.031 to 0.123 Ha off: a quarter to nearly all
# of the spectral gap, with not one run converging.  Read `gap`
# against `lv[2] - lv[1]`, never against the energy, and never
# report a single run.
gaps <- replicate(5, quantum_vqe_fit(om, max_iter = 400L)$gap)
round(range(gaps), 4)
round(range(gaps) / (lv[2] - lv[1]), 2)

# Reaching the ground state takes a deeper ansatz and far more
# iterations: reps = 3 with max_iter = 2000 (about 6 s a run)
# brought five restarts down to a 0.0000-0.0450 Ha spread.
round(quantum_vqe_fit(om, ansatz_reps = 3L, max_iter = 2000L)$gap, 4)
} # }