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.
Attributes
code/api/pennylane.decomposition.Resources
Download Python script
Download Notebook
View on GitHub