Skip to main content
IBM Quantum Platform
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.synthesis.generate_basic_approximations

generate_basic_approximations(basis_gates, depth, filename=None)

GitHub

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.

Return type

list[GateSequence]

Returns

List of GateSequences using the gates in basic_gates.

Raises

ValueError – If basis_gates contains an invalid gate identifier.

Was this page helpful?
Report a bug or request content on GitHub.