Set the marked vertices.

When a set or list of vertices is provided, they are set as marked. The evolution operator is updated accordingly.

If a dictionary is passed, the coin of those vertices is replaced solely for the purpose of generating the evolution operator. This can only be done if the set coin operator is not an explicit matrix.

markedlist of vertices or dict

list of vertices to be marked and how they are going to be marked.

  • list of vertices

    Given vertices are set as marked. The coin for those vertices is ‘-I’.

  • dict

    A dictionary with structure {coin_type : list_of_vertices}. Analogous to the one accepted by set_coin().