From 4b37400959f89e6a34330e508ebaa2ea3a333f1e Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:57:48 +0100 Subject: [PATCH 01/16] fix headers --- scripts/lib/api/processHtml.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/lib/api/processHtml.ts b/scripts/lib/api/processHtml.ts index 338c31a0629..d924e0b7cee 100644 --- a/scripts/lib/api/processHtml.ts +++ b/scripts/lib/api/processHtml.ts @@ -319,6 +319,10 @@ export function processMembersAndSetMeta( if (id) { if (!priorApiType) { $dl.siblings("h1").text(getLastPartFromFullIdentifier(id)); + } else if (!$child.attr("id")) { + // Overload methods have more than one
tag, but only the first one + // contains an id. + return `

${$child.html()}${github}

`; } else { // Inline methods $(`

${getLastPartFromFullIdentifier(id)}

`).insertBefore( From dcab0fb4e8b9344be54dae1debdd535d1765fab3 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:18:36 +0100 Subject: [PATCH 02/16] Regenerate qiskit 0.33.1 --- .../api/qiskit/0.33/qiskit.circuit.QuantumCircuit.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docs/api/qiskit/0.33/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.33/qiskit.circuit.QuantumCircuit.md index 1cf20586186..6559735cc35 100644 --- a/docs/api/qiskit/0.33/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.33/qiskit.circuit.QuantumCircuit.md @@ -1259,14 +1259,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.19/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1550,14 +1546,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.19/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4050,14 +4042,10 @@ Apply unitary gate to q. ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.19/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. From 1c0b35ea5d27fa834915df7a12cd06a17ba943b3 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:20:47 +0100 Subject: [PATCH 03/16] Regenerate qiskit 0.35.0 --- .../api/qiskit/0.35/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.35/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.35/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.35/qiskit.circuit.QuantumCircuit.md index e123f15748f..ff8f4f48b96 100644 --- a/docs/api/qiskit/0.35/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.35/qiskit.circuit.QuantumCircuit.md @@ -1259,14 +1259,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1550,14 +1546,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4166,14 +4158,10 @@ Apply unitary gate to q. ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.35/utils.md b/docs/api/qiskit/0.35/utils.md index 575ff54bf7b..eff3abbd73e 100644 --- a/docs/api/qiskit/0.35/utils.md +++ b/docs/api/qiskit/0.35/utils.md @@ -168,14 +168,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -194,14 +190,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From b1a9669c12ecf9a9bb7b73a80eb5e5767376b03b Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:23:00 +0100 Subject: [PATCH 04/16] Regenerate qiskit 0.36.0 --- .../api/qiskit/0.36/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.36/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.36/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.36/qiskit.circuit.QuantumCircuit.md index e8c1b96d03a..91e72be13bf 100644 --- a/docs/api/qiskit/0.36/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.36/qiskit.circuit.QuantumCircuit.md @@ -1259,14 +1259,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1550,14 +1546,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4166,14 +4158,10 @@ Apply unitary gate to q. ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.20/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.36/utils.md b/docs/api/qiskit/0.36/utils.md index 575ff54bf7b..eff3abbd73e 100644 --- a/docs/api/qiskit/0.36/utils.md +++ b/docs/api/qiskit/0.36/utils.md @@ -168,14 +168,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -194,14 +190,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 00d420477be2242d8db146554445d4ba1726c8ea Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:25:36 +0100 Subject: [PATCH 05/16] Regenerate qiskit 0.37.2 --- .../api/qiskit/0.37/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.37/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.37/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.37/qiskit.circuit.QuantumCircuit.md index e5f01c83b56..0ac89350ed7 100644 --- a/docs/api/qiskit/0.37/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.37/qiskit.circuit.QuantumCircuit.md @@ -1310,14 +1310,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1609,14 +1605,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4259,14 +4251,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.37/utils.md b/docs/api/qiskit/0.37/utils.md index 16765f2d1ea..1e8ccbfeb2c 100644 --- a/docs/api/qiskit/0.37/utils.md +++ b/docs/api/qiskit/0.37/utils.md @@ -170,14 +170,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -196,14 +192,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From b79475d508f37f8c34110314732b623ffd5c75df Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:28:02 +0100 Subject: [PATCH 06/16] Regenerate qiskit 0.38.0 --- .../api/qiskit/0.38/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.38/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.38/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.38/qiskit.circuit.QuantumCircuit.md index 24c27bcb48e..bc5a9d3f058 100644 --- a/docs/api/qiskit/0.38/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.38/qiskit.circuit.QuantumCircuit.md @@ -1310,14 +1310,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1609,14 +1605,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4113,14 +4105,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.21/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.38/utils.md b/docs/api/qiskit/0.38/utils.md index 71955886099..2bfd872f6bd 100644 --- a/docs/api/qiskit/0.38/utils.md +++ b/docs/api/qiskit/0.38/utils.md @@ -170,14 +170,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -196,14 +192,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From d5d607c9451611e0515a4d61cfcb249c0c773559 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:30:41 +0100 Subject: [PATCH 07/16] Regenerate qiskit 0.39.5 --- .../api/qiskit/0.39/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.39/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.39/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.39/qiskit.circuit.QuantumCircuit.md index 20dcc45044e..6fb0076c466 100644 --- a/docs/api/qiskit/0.39/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.39/qiskit.circuit.QuantumCircuit.md @@ -1392,14 +1392,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.22/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1691,14 +1687,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.22/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -4197,14 +4189,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.22/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.39/utils.md b/docs/api/qiskit/0.39/utils.md index d44e37e3d91..28784506226 100644 --- a/docs/api/qiskit/0.39/utils.md +++ b/docs/api/qiskit/0.39/utils.md @@ -171,14 +171,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -197,14 +193,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 98895e6ac2763641514c098f0b9bbee40b1173ad Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:33:31 +0100 Subject: [PATCH 08/16] Regenerate qiskit 0.40.0 --- .../api/qiskit/0.40/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.40/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.40/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.40/qiskit.circuit.QuantumCircuit.md index 773ce5ce244..c41d9ebd2b6 100644 --- a/docs/api/qiskit/0.40/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.40/qiskit.circuit.QuantumCircuit.md @@ -1247,14 +1247,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1567,14 +1563,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -3935,14 +3927,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.40/utils.md b/docs/api/qiskit/0.40/utils.md index d7d6d7e59ce..ba14cb76640 100644 --- a/docs/api/qiskit/0.40/utils.md +++ b/docs/api/qiskit/0.40/utils.md @@ -172,14 +172,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -198,14 +194,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 57aea6306429a8f7afb9e058d6b86097c8cbad30 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:36:09 +0100 Subject: [PATCH 09/16] Regenerate qiskit 0.41.0 --- .../api/qiskit/0.41/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.41/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.41/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.41/qiskit.circuit.QuantumCircuit.md index f67a93b7704..476899872ab 100644 --- a/docs/api/qiskit/0.41/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.41/qiskit.circuit.QuantumCircuit.md @@ -1229,14 +1229,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1549,14 +1545,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -3915,14 +3907,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.41/utils.md b/docs/api/qiskit/0.41/utils.md index d7d6d7e59ce..ba14cb76640 100644 --- a/docs/api/qiskit/0.41/utils.md +++ b/docs/api/qiskit/0.41/utils.md @@ -172,14 +172,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -198,14 +194,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From f945adb8dc01ec841cbcabd10848a9de6c00f663 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:38:42 +0100 Subject: [PATCH 10/16] Regenerate qiskit 0.42.0 --- .../api/qiskit/0.42/qiskit.circuit.QuantumCircuit.md | 12 ------------ docs/api/qiskit/0.42/utils.md | 8 -------- 2 files changed, 20 deletions(-) diff --git a/docs/api/qiskit/0.42/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.42/qiskit.circuit.QuantumCircuit.md index 12f63ed45d0..c9cc9c5fcc3 100644 --- a/docs/api/qiskit/0.42/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.42/qiskit.circuit.QuantumCircuit.md @@ -1229,14 +1229,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Optional[qiskit.circuit.parameter.Parameter], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `for` loop on this circuit. @@ -1549,14 +1545,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], true_body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str] = 'None') → qiskit.circuit.instructionset.InstructionSet` Create an `if` statement on this circuit. @@ -3915,14 +3907,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: None, qubits: None, clbits: None, *, label: Optional[str]) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.23/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: Tuple[Union[qiskit.circuit.classicalregister.ClassicalRegister, qiskit.circuit.classicalregister.Clbit], int], body: QuantumCircuit, qubits: Sequence[Union[qiskit.circuit.quantumregister.Qubit, qiskit.circuit.quantumregister.QuantumRegister, int, slice, Sequence[Union[qiskit.circuit.quantumregister.Qubit, int]]]], clbits: Sequence[Union[qiskit.circuit.classicalregister.Clbit, qiskit.circuit.classicalregister.ClassicalRegister, int, slice, Sequence[Union[qiskit.circuit.classicalregister.Clbit, int]]]], *, label: Optional[str]) → qiskit.circuit.instructionset.InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.42/utils.md b/docs/api/qiskit/0.42/utils.md index d7d6d7e59ce..ba14cb76640 100644 --- a/docs/api/qiskit/0.42/utils.md +++ b/docs/api/qiskit/0.42/utils.md @@ -172,14 +172,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -198,14 +194,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 2e58fabcea58c92cda47ad69eef74f84bc968d5c Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:40:47 +0100 Subject: [PATCH 11/16] Regenerate qiskit 0.43.0 --- .../0.43/qiskit.circuit.QuantumCircuit.md | 20 ------------------- docs/api/qiskit/0.43/utils.md | 8 -------- 2 files changed, 28 deletions(-) diff --git a/docs/api/qiskit/0.43/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.43/qiskit.circuit.QuantumCircuit.md index 7aac0b32db2..a699641234e 100644 --- a/docs/api/qiskit/0.43/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.43/qiskit.circuit.QuantumCircuit.md @@ -180,14 +180,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -##### assign\_parameters - `QuantumCircuit.assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False) → QuantumCircuit`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False) → None` Assign parameters to new parameters or values. @@ -1307,14 +1303,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -##### for\_loop - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.for_loop.ForLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1678,14 +1670,10 @@ A handle to the instruction created. ### if\_test -##### if\_test - `QuantumCircuit.if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.if_else.IfContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3300,14 +3288,10 @@ A handle to the instructions created. ### switch -##### switch - `QuantumCircuit.switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.switch_case.SwitchContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3770,14 +3754,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -##### while\_loop - `QuantumCircuit.while_loop(condition: tuple[ClassicalRegister | Clbit, int], body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.while_loop.WhileLoopContext`[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.24/qiskit/circuit/quantumcircuit.py "view source code") - - `QuantumCircuit.while_loop(condition: tuple[ClassicalRegister | Clbit, int], body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.43/utils.md b/docs/api/qiskit/0.43/utils.md index f91ee80a0b9..52b3344cff9 100644 --- a/docs/api/qiskit/0.43/utils.md +++ b/docs/api/qiskit/0.43/utils.md @@ -179,14 +179,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -205,14 +201,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From a68941eb4b9f1918342719d7b56d13ffd90184f4 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:43:04 +0100 Subject: [PATCH 12/16] Regenerate qiskit 0.44.0 --- .../0.44/qiskit.circuit.QuantumCircuit.md | 20 ------------------- docs/api/qiskit/0.44/utils.md | 8 -------- 2 files changed, 28 deletions(-) diff --git a/docs/api/qiskit/0.44/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.44/qiskit.circuit.QuantumCircuit.md index 69f9f5e5ea8..af957c2a4b3 100644 --- a/docs/api/qiskit/0.44/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.44/qiskit.circuit.QuantumCircuit.md @@ -361,14 +361,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -### assign\_parameters - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False, *, flat_input: bool = False, strict: bool = True) → QuantumCircuit` - - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False, *, flat_input: bool = False, strict: bool = True) → None` Assign parameters to new parameters or values. @@ -1416,14 +1412,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -### for\_loop - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.for_loop.ForLoopContext` - - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1769,14 +1761,10 @@ A handle to the instruction created. ### if\_test -### if\_test - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.if_else.IfContext` - - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3294,14 +3282,10 @@ A handle to the instructions created. ### switch -### switch - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.switch_case.SwitchContext` - - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3734,14 +3718,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -### while\_loop - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.while_loop.WhileLoopContext` - - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.44/utils.md b/docs/api/qiskit/0.44/utils.md index a2bc4d02821..de286a217b9 100644 --- a/docs/api/qiskit/0.44/utils.md +++ b/docs/api/qiskit/0.44/utils.md @@ -543,14 +543,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -569,14 +565,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 3d2f77e3dc13635fa832d3c53f911f119990aca3 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:44:42 +0100 Subject: [PATCH 13/16] Regenerate qiskit 0.45.3 --- .../0.45/qiskit.circuit.QuantumCircuit.md | 20 ------------------- docs/api/qiskit/0.45/utils.md | 8 -------- 2 files changed, 28 deletions(-) diff --git a/docs/api/qiskit/0.45/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.45/qiskit.circuit.QuantumCircuit.md index 0b72afe2353..85db6df4436 100644 --- a/docs/api/qiskit/0.45/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.45/qiskit.circuit.QuantumCircuit.md @@ -361,14 +361,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -### assign\_parameters - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False, *, flat_input: bool = False, strict: bool = True) → QuantumCircuit` - - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False, *, flat_input: bool = False, strict: bool = True) → None` Assign parameters to new parameters or values. @@ -1429,14 +1425,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -### for\_loop - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.for_loop.ForLoopContext` - - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1786,14 +1778,10 @@ A handle to the instruction created. ### if\_test -### if\_test - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.if_else.IfContext` - - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3330,14 +3318,10 @@ A handle to the instructions created. ### switch -### switch - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.switch_case.SwitchContext` - - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3786,14 +3770,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -### while\_loop - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.while_loop.WhileLoopContext` - - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.45/utils.md b/docs/api/qiskit/0.45/utils.md index bb44de681bf..7b6f958032c 100644 --- a/docs/api/qiskit/0.45/utils.md +++ b/docs/api/qiskit/0.45/utils.md @@ -543,14 +543,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -569,14 +565,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From c584fd7e814da5dffc7a6ac4de4ca4518342b63f Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 15:46:24 +0100 Subject: [PATCH 14/16] Regenerate qiskit 0.46.0 --- .../0.46/qiskit.circuit.QuantumCircuit.md | 20 ------------------- docs/api/qiskit/0.46/utils.md | 8 -------- 2 files changed, 28 deletions(-) diff --git a/docs/api/qiskit/0.46/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/0.46/qiskit.circuit.QuantumCircuit.md index bef28c4d5c6..d1485cfbc8e 100644 --- a/docs/api/qiskit/0.46/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/0.46/qiskit.circuit.QuantumCircuit.md @@ -361,14 +361,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -### assign\_parameters - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False, *, flat_input: bool = False, strict: bool = True) → QuantumCircuit` - - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False, *, flat_input: bool = False, strict: bool = True) → None` Assign parameters to new parameters or values. @@ -1429,14 +1425,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -### for\_loop - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.for_loop.ForLoopContext` - - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1786,14 +1778,10 @@ A handle to the instruction created. ### if\_test -### if\_test - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.if_else.IfContext` - - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3334,14 +3322,10 @@ A handle to the instructions created. ### switch -### switch - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.switch_case.SwitchContext` - - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3790,14 +3774,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -### while\_loop - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: None, qubits: None, clbits: None, *, label: str | None) → qiskit.circuit.controlflow.while_loop.WhileLoopContext` - - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/0.46/utils.md b/docs/api/qiskit/0.46/utils.md index b7b8bc4ec70..1591eb8d60f 100644 --- a/docs/api/qiskit/0.46/utils.md +++ b/docs/api/qiskit/0.46/utils.md @@ -616,14 +616,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -642,14 +638,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From 166f550d269b3060c4563d5ab82fef91e77e0af5 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 16:04:53 +0100 Subject: [PATCH 15/16] Regenerate qiskit 1.0.1 --- .../qiskit/qiskit.circuit.QuantumCircuit.md | 24 ------------------- docs/api/qiskit/utils.md | 8 ------- 2 files changed, 32 deletions(-) diff --git a/docs/api/qiskit/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/qiskit.circuit.QuantumCircuit.md index 9f37cc25710..f8e54ee3f7b 100644 --- a/docs/api/qiskit/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/qiskit.circuit.QuantumCircuit.md @@ -346,14 +346,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -### assign\_parameters - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False, *, flat_input: bool = False, strict: bool = True) → QuantumCircuit` - - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False, *, flat_input: bool = False, strict: bool = True) → None` Assign parameters to new parameters or values. @@ -1345,14 +1341,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -### for\_loop - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → ForLoopContext` - - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1497,14 +1489,10 @@ list of (instruction, qargs, cargs). ### get\_parameter -### get\_parameter - `get_parameter(name: str, default: T) → Parameter | T` - - `get_parameter(name: str, default: ellipsis = Ellipsis) → Parameter` Retrieve a compile-time parameter that is accessible in this circuit scope by name. @@ -1695,14 +1683,10 @@ A handle to the instruction created. ### if\_test -### if\_test - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → IfContext` - - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3028,14 +3012,10 @@ A handle to the instructions created. ### switch -### switch - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → SwitchContext` - - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3323,14 +3303,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -### while\_loop - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: None, qubits: None, clbits: None, *, label: str | None) → WhileLoopContext` - - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/utils.md b/docs/api/qiskit/utils.md index d2c03a1d0e1..69487fa56f6 100644 --- a/docs/api/qiskit/utils.md +++ b/docs/api/qiskit/utils.md @@ -444,14 +444,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -470,14 +466,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method. From d6626993f8d115711c93274c1e84bff9a07db8e4 Mon Sep 17 00:00:00 2001 From: Arnau Casau Date: Tue, 27 Feb 2024 16:06:53 +0100 Subject: [PATCH 16/16] Regenerate qiskit 1.1.0-dev --- .../dev/qiskit.circuit.QuantumCircuit.md | 24 ------------------- docs/api/qiskit/dev/utils.md | 8 ------- 2 files changed, 32 deletions(-) diff --git a/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.md b/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.md index ed219bbfd5d..afa40cbf292 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.md +++ b/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.md @@ -346,14 +346,10 @@ a handle to the [`CircuitInstruction`](qiskit.circuit.CircuitInstruction "qiskit ### assign\_parameters -### assign\_parameters - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[False] = False, *, flat_input: bool = False, strict: bool = True) → QuantumCircuit` - - `assign_parameters(parameters: Mapping[Parameter, ParameterExpression | float] | Sequence[ParameterExpression | float], inplace: Literal[True] = False, *, flat_input: bool = False, strict: bool = True) → None` Assign parameters to new parameters or values. @@ -1345,14 +1341,10 @@ The circuit index of an [`AncillaQubit`](qiskit.circuit.AncillaQubit "qiskit.cir ### for\_loop -### for\_loop - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: None, qubits: None, clbits: None, *, label: str | None) → ForLoopContext` - - `for_loop(indexset: Iterable[int], loop_parameter: Parameter | None, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `for` loop on this circuit. @@ -1497,14 +1489,10 @@ list of (instruction, qargs, cargs). ### get\_parameter -### get\_parameter - `get_parameter(name: str, default: T) → Parameter | T` - - `get_parameter(name: str, default: ellipsis = Ellipsis) → Parameter` Retrieve a compile-time parameter that is accessible in this circuit scope by name. @@ -1695,14 +1683,10 @@ A handle to the instruction created. ### if\_test -### if\_test - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: None, qubits: None, clbits: None, *, label: str | None) → IfContext` - - `if_test(condition: tuple[ClassicalRegister | Clbit, int], true_body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None = None) → InstructionSet` Create an `if` statement on this circuit. @@ -3028,14 +3012,10 @@ A handle to the instructions created. ### switch -### switch - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: None, qubits: None, clbits: None, *, label: str | None) → SwitchContext` - - `switch(target: Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int], cases: Iterable[Tuple[Any, QuantumCircuit]], qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `switch`/`case` structure on this circuit. @@ -3323,14 +3303,10 @@ circuit.unitary(matrix, [0, 1]) ### while\_loop -### while\_loop - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: None, qubits: None, clbits: None, *, label: str | None) → WhileLoopContext` - - `while_loop(condition: tuple[ClassicalRegister | Clbit, int] | expr.Expr, body: QuantumCircuit, qubits: Sequence[Qubit | QuantumRegister | int | slice | Sequence[Qubit | int]], clbits: Sequence[Clbit | ClassicalRegister | int | slice | Sequence[Clbit | int]], *, label: str | None) → InstructionSet` Create a `while` loop on this circuit. diff --git a/docs/api/qiskit/dev/utils.md b/docs/api/qiskit/dev/utils.md index 9e276b769c4..5bee46c77f6 100644 --- a/docs/api/qiskit/dev/utils.md +++ b/docs/api/qiskit/dev/utils.md @@ -444,14 +444,10 @@ Create a context, during which the value of the dependency manager will be `Fals ### require\_in\_call -### require\_in\_call - `require_in_call(feature_or_callable: Callable) → Callable` - - `require_in_call(feature_or_callable: str) → Callable[[Callable], Callable]` Create a decorator for callables that requires that the dependency is available when the decorated function or method is called. @@ -470,14 +466,10 @@ Callable ### require\_in\_instance -### require\_in\_instance - `require_in_instance(feature_or_class: Type) → Type` - - `require_in_instance(feature_or_class: str) → Callable[[Type], Type]` A class decorator that requires the dependency is available when the class is initialised. This decorator can be used even if the class does not define an `__init__` method.