Japanese
言語
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.synthesis.generate_basic_approximations

generate_basic_approximations(basis_gates, depth, filename=None)[ソース]

Generates a list of GateSequence``s with the gates in ``basic_gates.

パラメータ
  • 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.

戻り値

List of GateSequences using the gates in basic_gates.

例外

ValueError – If basis_gates contains an invalid gate identifier.

戻り値の型

list[GateSequence]