scqubits.core.operators.hubbard_sparse

scqubits.core.operators.hubbard_sparse(j1, j2, dimension)[source]

The Hubbard operator \(|j1\rangle>\langle j2|\) is returned as a matrix of linear size dimension.

Parameters:
  • dimension (int)

  • j1 (int) – indices of the two states labeling the Hubbard operator

  • j2 (int) – indices of the two states labeling the Hubbard operator

Return type:

csc_matrix

Returns:

sparse number operator matrix, size dimension x dimension