MCPcopy Create free account
hub / github.com/OriginQ/QPanda-2 / enabled

Method enabled

Core/VirtualQuantumProcessor/DensityMatrix/DensityMatrixNoise.cpp:7–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace NoiseUtils;
6
7bool DensityMatrixNoise::enabled()
8{
9 return !m_single_qubits.empty() || !m_double_qubits.empty();
10}
11
12bool DensityMatrixNoise::enabled(GateType gate_type, Qnum qubits)
13{

Callers 2

runMethod · 0.45
apply_gate_with_noisyMethod · 0.45

Calls 5

findFunction · 0.50
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected