qml.decomposition.Resources

class Resources(gate_counts=<factory>, weighted_cost=None)[source]

Bases: object

Stores resource estimates.

Parameters:
  • gate_counts (dict) – dictionary mapping operator types to their number of occurrences.

  • weighted_cost (float) – the cumulative weight of the gates.

num_gates

The total number of gates.

weighted_cost

gate_counts

num_gates

The total number of gates.

weighted_cost = None
gate_counts