![]() |
Calculate the edge operator B_i. The definitions used here are
openfermion.transforms.opconversions.edge_operator_b(
edge_matrix_indices: numpy.ndarray,
i: int
) -> openfermion.ops.QubitOperator
consistent with arXiv:quant-ph/0003137
Args | |
---|---|
edge_matrix_indices(numpy array(square and symmetric): i (int): index for specifying the edge operator B. |
Returns | |
---|---|
An instance of QubitOperator |