qoqo.operations.PragmaDepolarising
- class qoqo.operations.PragmaDepolarising
The depolarising PRAGMA noise operation.
This PRAGMA operation applies a depolarising error corresponding to infinite temperature environments.
- Parameters:
qubit (int) – The qubit on which to apply the depolarising.
gate_time (CalculatorFloat) – The time (in seconds) the gate takes to be applied to the qubit on the (simulated) hardware
rate (CalculatorFloat) – The error rate of the depolarisation (in 1/second).
- __init__()
Methods
__init__
()Returns value of attribute gate_time
hqslang
()Returns hqslang name of Operation
List all involved Qubits
Returns true if operation contains symbolic parameters
powercf
(power)Return the power of the noise gate
Returns the probability associated with the noise operation
qubit
()Return the qubit the operation acts on
rate
()Returns value of attribute rate
remap_qubits
(mapping)Remap qubits
substitute_parameters
(substitution_parameters)Substitutes internal symbolic parameters with float values
Return the superoperator defining the evolution of the density matrix under the noise gate
tags
()Returns tags identifying the Operation
- gate_time()
Returns value of attribute gate_time
- hqslang()
Returns hqslang name of Operation
- Returns:
The name
- Return type:
str
- involved_qubits()
List all involved Qubits
- Returns:
The involved qubits as a set or ‘ALL’ if all qubits are involved
- Return type:
Union[set[int], str]
- is_parametrized()
Returns true if operation contains symbolic parameters
- Returns:
bool
- powercf(power)
Return the power of the noise gate
- Parameters:
power (CalculatorFloat) – exponent in the power operation of the noise gate
- Returns:
Self
- probability()
Returns the probability associated with the noise operation
- Returns:
CalculatorFloat
- qubit()
Return the qubit the operation acts on
- Returns:
int
- rate()
Returns value of attribute rate
- remap_qubits(mapping)
Remap qubits
- Parameters:
mapping (dict[int, int]) – The mapping
- Returns:
The operation with the remapped qubits
- Return type:
Operation
- Raises:
RuntimeError – Qubit remapping failed
- substitute_parameters(substitution_parameters)
Substitutes internal symbolic parameters with float values
Only available when all symbolic expressions can be evaluated to float with the provided parameters.
- Parameters:
substitution_parameters (dict[str, float]) – The substituted free parameters
- Returns:
The operation with the parameters substituted
- Return type:
Operation
- Raises:
RuntimeError – Parameter Substitution failed
- superoperator()
Return the superoperator defining the evolution of the density matrix under the noise gate
- Returns:
np.ndarray
- tags()
Returns tags identifying the Operation
- Returns:
The tags identifying the operation
- Return type:
list[str]