French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

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.

Paramètres
  • 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.

Renvoie

List of GateSequences using the gates in basic_gates.

Lève

ValueError – If basis_gates contains an invalid gate identifier.

Type renvoyé

list[GateSequence]