{ }
View source on GitHub |
Calculate the edge operator A_ij.
openfermion.transforms.opconversions.edge_operator_aij(
edge_matrix_indices: numpy.ndarray, i: int, j: int
) -> openfermion.ops.QubitOperator
The definitions used here are consistent with arXiv:quant-ph/0003137
Args | |
---|---|
edge_matrix_indices
|
numpy array
specifying the edges i,j (int): specifying the edge operator A |
Returns | |
---|---|
An instance of QubitOperator |