SeedLayerGenerator.hash_structure

static SeedLayerGenerator.hash_structure(circuit, hash_on_1q_gate=True)[source]

Compute a hash of the Circuit’s structure.

Parameters:
  • circuit (Circuit) – Circuit to be hashed.

  • hash_on_1q_gate (bool) – Whether or not to include 1 qubit gates in the hash computation. (Default: True)