pyqonvert.decompositions.single_qubit_decomposition_quantum_program
- pyqonvert.decompositions.single_qubit_decomposition_quantum_program(quantum_program, device)
Perform the single-qubit gate decomposition of a given QuantumProgram to the gates that are executable on the given Device.
- Parameters:
quantum_program (QuantumProgram) -- The QuantumProgram to be decomposed.
device (AllToAllDevice) -- The Device containing the native gate set information.
- Returns:
with the Circuit decomposed into the gates that can be executed on the Device.
- Return type:
QuantumProgram
- Raises:
RuntimeError -- Error occured in the decomposition.
ValueError -- Could not convert inputs from Python.