Skip to main contentIBM Quantum Documentation
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.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

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.

Returns

List of GateSequences using the gates in basic_gates.

Raises

ValueError – If basis_gates contains an invalid gate identifier.

Return type

list[GateSequence]

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