Calculates the quantum costs. More...
Public Member Functions | |
unsigned | operator() (const gate &g, unsigned lines) const |
Returns the quantum costs for gate g . |
Calculates the quantum costs.
This costs class calculates the quantum costs. Thereby known optimizations for gates with few control lines or for gates with empty lines are considered.
unsigned operator() | ( | const gate & | g, | |
unsigned | lines | |||
) | const |
Returns the quantum costs for gate g
.
g | Gate | |
lines | Number of lines in the circuit |
g