tqec.circuit.operations.operation.RX
- class RX(*qubits: Qid)[source]
Reset in the X-basis.
- __init__(*qubits: Qid) None [source]
Create the X-reset operation.
- Parameters:
qubits – the qubits that should be reset by the operation.
Methods
__init__
(*qubits)Create the X-reset operation.
controlled_by
(*control_qubits[, control_values])Returns a controlled version of this operation. If no control_qubits
transform_qubits
(qubit_map)Returns the same operation, but with different qubits.
validate_args
(qubits)Raises an exception if the qubits don't match this operation's qid shape.
with_classical_controls
(*conditions)Returns a classically controlled version of this operation.
with_probability
(probability)Creates a probabilistic channel with this operation.
with_qubits
(*new_qubits)Returns the same operation, but applied to different qubits.
with_tags
(*new_tags)Creates a new TaggedOperation, with this op and the specified tags.
without_classical_controls
()Removes all classical controls from the operation.
Attributes
classical_controls
The classical controls gating this operation.
gate
qubits
tags
Returns a tuple of the operation's tags.
untagged
Returns the underlying operation without any tags.