qiskit_addon_cutting.qpd.qpdbasis_from_instruction¶
- qpdbasis_from_instruction(gate, /)[source]¶
Generate a
QPDBasis
object, given a supported operation.All two-qubit gates which implement the
to_matrix()
method are supported. This should include the vast majority of gates with no unbound parameters, but there are some special cases (see, e.g., qiskit issue #10396).The
Move
operation, which can be used to specify a wire cut, is also supported.- Return type:
- Returns:
The newly-instantiated
QPDBasis
object- Raises:
ValueError – Instruction not supported.
ValueError – Cannot decompose instruction with unbound parameters.
ValueError –
to_matrix
conversion of two-qubit gate failed.