Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
5
using namespace NoiseUtils;
6
7
bool DensityMatrixNoise::enabled()
8
{
9
return !m_single_qubits.empty() || !m_double_qubits.empty();
10
}
11
12
bool DensityMatrixNoise::enabled(GateType gate_type, Qnum qubits)
13
{
Callers
2
run
Method · 0.45
apply_gate_with_noisy
Method · 0.45
Calls
5
find
Function · 0.50
empty
Method · 0.45
find
Method · 0.45
end
Method · 0.45
begin
Method · 0.45
Tested by
no test coverage detected