Follow issue https://github.com/qiskit-community/qiskit-braket-provider/issues/138, the to_braket function converts the input QIskit circuit into a Braket circuit that contains the backend's native gates. However, such conversion does not consider the topology of the device yet. The range of angle is also not considered by the to_braket function. The output circuit of to_braket may currently contain angle not supported by the backend.
What is the expected behavior?
When apply the to_braket function to a QIskit circuit, shown as the code snippet below,
the output braket_circuit is a circuit in Braket Circuit class. The output Braket circuit should be equivalent to the input Qiskit circuit, but it only contains native gates of the device with the correct range of the angles. The two-qubit native gates apply only on the physical edge of the device.
Acceptance criteria
The output Braket circuit only use angles supported by the backend. Currently, the only backends that has such restriction in angles are Rigetti backends. As a native gate in Rigetti backends, the Rx can only accept +pi, -pi, +pi/2 and -pi/2.
There is a extensible way to specify angle restriction for a backend. For example, a new restriction can be added to a backend without complex change in the code.
The two-qubit native gates should respect the device topology.
Follow issue https://github.com/qiskit-community/qiskit-braket-provider/issues/138, the
to_braket
function converts the input QIskit circuit into a Braket circuit that contains the backend's native gates. However, such conversion does not consider the topology of the device yet. The range of angle is also not considered by theto_braket
function. The output circuit ofto_braket
may currently contain angle not supported by the backend.What is the expected behavior?
When apply the
to_braket
function to a QIskit circuit, shown as the code snippet below,the output
braket_circuit
is a circuit in Braket Circuit class. The output Braket circuit should be equivalent to the input Qiskit circuit, but it only contains native gates of the device with the correct range of the angles. The two-qubit native gates apply only on the physical edge of the device.Acceptance criteria