qiskit.synthesis.generate_basic_approximations¶
- generate_basic_approximations(basis_gates, depth, filename=None)[source]¶
Generates a list of
GateSequence``s with the gates in ``basic_gates
.- Parameters
basis_gates (list[str | Gate]) -- The gates from which to create the sequences of gates.
depth (int) -- The maximum depth of the approximations.
filename (str | None) -- If provided, the basic approximations are stored in this file.
- Returns
List of
GateSequences
using the gates inbasic_gates
.- Raises
ValueError -- If
basis_gates
contains an invalid gate identifier.- Return type
list[GateSequence]