Skip to main content
IBM Quantum Platform
Esta página corresponde a una versión anterior de Qiskit SDK Ir a la última versión

OptimizationMetric

class qiskit.transpiler.OptimizationMetric(value)

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

Valor predeterminado: 1

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

COUNT_T

Valor predeterminado: 2

The transpilation is optimized towards the T-count.

¿Le ha resultado útil esta página?
Informe de un error, de una errata o solicite contenido en GitHub.