Class GateCounter¶
Defined in File gate_counter.hpp
Class Documentation¶
-
class
GateCounter¶ The GateCounter class serves two main purposes: 1) To count the number of gates applied, divided by kind. 2) To estimate the circuit depth if scheduled in a greedy way.
Public Functions
-
GateCounter(int new_num_qubits)¶
-
~GateCounter()¶
-
void
Reset()¶
-
int
GetTotalGateCount()¶
-
int
GetOneQubitGateCount()¶
-
int
GetTwoQubitGateCount()¶
-
int
GetParallelDepth()¶
-
void
OneQubitIncrement(int qubit)¶ Update the counters and depth due to the action of a one-qubit gate.
-
void
TwoQubitIncrement(int qubit_0, int qubit_1)¶ Update the counters and depth due to the action of a two-qubit gate.
-
void
Breakdown()¶ Print the values of counters and depth.
-