Skip to main content
IBM Quantum Platform
Cette page provient d'une ancienne version de Qiskit SDK. Aller à la dernière version

OptimizationMetric

class qiskit.transpiler.OptimizationMetric(*values)

GitHub

Bases: Enum

Optimization metric considered during transpilation.

The metric COUNT_2Q targets optimizing the two-qubit gate count of the output circuit. This is generally the preferred choice for near-term execution.

The metric COUNT_T targets optimizing the T-count of the output circuit when the circuit is transpiled into the Clifford+T basis set.


Attributes

COUNT_2Q

Valeur par défaut: 1

The transpilation is optimized towards minimizing the 2q-count.

COUNT_T

Valeur par défaut: 2

The transpilation is optimized towards the T-count.

Cette page a-t-elle été utile ?
Signaler un bogue, une coquille ou proposer du contenu sur GitHub.