rshift¶
-
rshift
(self, target)[source]¶ Add a target backend to circuit.
- Parameters
target (BaseBackend) – The target backend
- Returns
QuantumCircuit with attached target_backend.
- Return type
QuantumCircuit
- Raises
KaleidoscopeError – Input is not a valid backend instance.
KaleidoscopeError – Number of qubits larger than target backend.
Example
from qiskit import QuantumCircuit import kaleidoscope.qiskit from kaleidoscope.qiskit.services import Simulators qc = QuantumCircuit(5, 5) >> Simulators.aer_vigo_simulator print(qc.target_backend)
Traceback [1;36m(most recent call last)[0m: File [0;32m"<ipython-input-1-bdb7f62815cb>"[0m, line [0;32m5[0m, in [0;35m<module>[0m qc = QuantumCircuit(5, 5) >> Simulators.aer_vigo_simulator [1;36m File [1;32m"/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/kaleidoscope/qiskit/services/_simulators.py"[1;36m, line [1;32m190[1;36m, in [1;35m__getattr__[1;36m[0m [1;33m raise AttributeError("Couldn't load {}.".format(attr))[0m [1;31mAttributeError[0m[1;31m:[0m Couldn't load aer_vigo_simulator. Use %tb to get the full traceback.