with_properties
- CNOTGateSet.with_properties(*, single_qubit_gate_error=None, entangler_gate_error=None, gate_errors=None, single_qubit_gate_duration=None, entangler_gate_duration=None, gate_durations=None, reserved_qubits_by_gate=None, replace=False)
Return a copy of this gate set with new errors, durations or reserved qubits.
The copy keeps every value of this gate set that is not given here. A uniform value replaces the uniform value, and a per-gate mapping replaces the values of the gates it names. With
replace=Truethe copy keeps none of them: an error or a duration not given has no value, and reserved qubits not given take the gate set’s default.- Parameters:
single_qubit_gate_error (
float|None) – As the constructor takes it.entangler_gate_error (
float|None) – As the constructor takes it.gate_errors (
Mapping[Gate,float] |None) – As the constructor takes it.single_qubit_gate_duration (
float|None) – As the constructor takes it.entangler_gate_duration (
float|None) – As the constructor takes it.gate_durations (
Mapping[Gate,float] |None) – As the constructor takes it.reserved_qubits_by_gate (
Mapping[Gate,Iterable[int]] |None) – As the constructor takes it.replace (
bool) – Whether the copy drops the values not given.
- Return type:
- Returns:
The copy.
- Raises:
ValidationError – As the constructor raises it.