Skip to content

Commit 13f62ec

Browse files
Generate Qiskit 1.2.0rc1 docs (#1793)
1 parent 23577b8 commit 13f62ec

File tree

530 files changed

+3686
-2985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

530 files changed

+3686
-2985
lines changed

docs/api/qiskit/dev/_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"name": "qiskit",
3-
"version": "1.2.0-dev"
3+
"version": "1.2.0rc1"
44
}

docs/api/qiskit/dev/_toc.json

+12
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,10 @@
13451345
"title": "SolovayKitaevSynthesis",
13461346
"url": "/api/qiskit/dev/qiskit.transpiler.passes.synthesis.solovay_kitaev_synthesis.SolovayKitaevSynthesis"
13471347
},
1348+
{
1349+
"title": "Split2QUnitaries",
1350+
"url": "/api/qiskit/dev/qiskit.transpiler.passes.Split2QUnitaries"
1351+
},
13481352
{
13491353
"title": "StarPreRouting",
13501354
"url": "/api/qiskit/dev/qiskit.transpiler.passes.StarPreRouting"
@@ -1489,6 +1493,10 @@
14891493
"title": "BackendSamplerV2",
14901494
"url": "/api/qiskit/dev/qiskit.primitives.BackendSamplerV2"
14911495
},
1496+
{
1497+
"title": "BaseEstimator",
1498+
"url": "/api/qiskit/dev/qiskit.primitives.BaseEstimator"
1499+
},
14921500
{
14931501
"title": "BaseEstimatorV1",
14941502
"url": "/api/qiskit/dev/qiskit.primitives.BaseEstimatorV1"
@@ -1501,6 +1509,10 @@
15011509
"title": "BasePrimitiveJob",
15021510
"url": "/api/qiskit/dev/qiskit.primitives.BasePrimitiveJob"
15031511
},
1512+
{
1513+
"title": "BaseSampler",
1514+
"url": "/api/qiskit/dev/qiskit.primitives.BaseSampler"
1515+
},
15041516
{
15051517
"title": "BaseSamplerV1",
15061518
"url": "/api/qiskit/dev/qiskit.primitives.BaseSamplerV1"

docs/api/qiskit/dev/assembler.mdx

+11-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ python_api_name: qiskit.assembler
2222

2323
### assemble\_circuits
2424

25-
<Function id="qiskit.assembler.assemble_circuits" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/assembler/assemble_circuits.py#L302-L408" signature="qiskit.assembler.assemble_circuits(circuits, run_config, qobj_id, qobj_header)">
25+
<Function id="qiskit.assembler.assemble_circuits" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/utils/deprecation.py#L408-L451" signature="qiskit.assembler.assemble_circuits(circuits, run_config, qobj_id, qobj_header)">
2626
Assembles a list of circuits into a qobj that can be run on the backend.
2727

28+
<Admonition title="Deprecated since version 1.2" type="danger">
29+
The function `qiskit.assembler.assemble_circuits.assemble_circuits()` is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. The Qobj class and related functionality are part of the deprecated BackendV1 workflow, and no longer necessary for BackendV2. If a user workflow requires Qobj it likely relies on deprecated functionality and should be updated to use BackendV2.
30+
</Admonition>
31+
2832
**Parameters**
2933

3034
* **circuits** ([*List*](https://docs.python.org/3/library/typing.html#typing.List "(in Python v3.12)")*\[*[*QuantumCircuit*](qiskit.circuit.QuantumCircuit "qiskit.circuit.quantumcircuit.QuantumCircuit")*]*) – circuit(s) to assemble
@@ -63,7 +67,7 @@ python_api_name: qiskit.assembler
6367

6468
### assemble\_schedules
6569

66-
<Function id="qiskit.assembler.assemble_schedules" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/assembler/assemble_schedules.py#L27-L103" signature="qiskit.assembler.assemble_schedules(schedules, qobj_id, qobj_header, run_config)">
70+
<Function id="qiskit.assembler.assemble_schedules" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/assembler/assemble_schedules.py#L27-L103" signature="qiskit.assembler.assemble_schedules(schedules, qobj_id, qobj_header, run_config)">
6771
Assembles a list of schedules into a qobj that can be run on the backend.
6872

6973
**Parameters**
@@ -125,13 +129,17 @@ python_api_name: qiskit.assembler
125129

126130
### disassemble
127131

128-
<Function id="qiskit.assembler.disassemble" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/assembler/disassemble.py#L40-L83" signature="qiskit.assembler.disassemble(qobj)">
132+
<Function id="qiskit.assembler.disassemble" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/utils/deprecation.py#L41-L92" signature="qiskit.assembler.disassemble(qobj)">
129133
Disassemble a qobj and return the circuits or pulse schedules, run\_config, and user header.
130134

131135
<Admonition title="Note" type="note">
132136
`disassemble(assemble(qc))` is not guaranteed to produce an exactly equal circuit to the input, due to limitations in the [`QasmQobj`](qiskit.qobj.QasmQobj "qiskit.qobj.QasmQobj") format that need to be maintained for backend system compatibility. This is most likely to be the case when using newer features of [`QuantumCircuit`](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit"). In most cases, the output should be equivalent, if not quite equal.
133137
</Admonition>
134138

139+
<Admonition title="Deprecated since version 1.2" type="danger">
140+
The function `qiskit.assembler.disassemble.disassemble()` is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. The Qobj class and related functionality are part of the deprecated BackendV1 workflow, and no longer necessary for BackendV2. If a user workflow requires Qobj it likely relies on deprecated functionality and should be updated to use BackendV2.
141+
</Admonition>
142+
135143
**Parameters**
136144

137145
**qobj** (*Qobj*) – The input qobj object to disassemble

docs/api/qiskit/dev/circuit.mdx

+20-20
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Qubits and classical bits are represented by a shared base [`Bit`](#qiskit.circu
251251

252252
#### Bit
253253

254-
<Class id="qiskit.circuit.Bit" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/bit.py#L21-L94" signature="qiskit.circuit.Bit(register=None, index=None)" modifiers="class">
254+
<Class id="qiskit.circuit.Bit" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/bit.py#L21-L94" signature="qiskit.circuit.Bit(register=None, index=None)" modifiers="class">
255255
Implement a generic bit.
256256

257257
<Admonition title="Note" type="note">
@@ -263,15 +263,15 @@ Qubits and classical bits are represented by a shared base [`Bit`](#qiskit.circu
263263

264264
#### Qubit
265265

266-
<Class id="qiskit.circuit.Qubit" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/quantumregister.py#L26-L47" signature="qiskit.circuit.Qubit(register=None, index=None)" modifiers="class">
266+
<Class id="qiskit.circuit.Qubit" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/quantumregister.py#L26-L47" signature="qiskit.circuit.Qubit(register=None, index=None)" modifiers="class">
267267
Bases: [`Bit`](#qiskit.circuit.Bit "qiskit.circuit.bit.Bit")
268268

269269
Implement a quantum bit.
270270
</Class>
271271

272272
#### Clbit
273273

274-
<Class id="qiskit.circuit.Clbit" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/classicalregister.py#L26-L47" signature="qiskit.circuit.Clbit(register=None, index=None)" modifiers="class">
274+
<Class id="qiskit.circuit.Clbit" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/classicalregister.py#L26-L47" signature="qiskit.circuit.Clbit(register=None, index=None)" modifiers="class">
275275
Bases: [`Bit`](#qiskit.circuit.Bit "qiskit.circuit.bit.Bit")
276276

277277
Implement a classical bit.
@@ -281,7 +281,7 @@ Qubits and clbits are instantiated by users with no arguments, such as by `Qubit
281281

282282
#### AncillaQubit
283283

284-
<Class id="qiskit.circuit.AncillaQubit" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/quantumregister.py#L60-L65" signature="qiskit.circuit.AncillaQubit(register=None, index=None)" modifiers="class">
284+
<Class id="qiskit.circuit.AncillaQubit" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/quantumregister.py#L60-L65" signature="qiskit.circuit.AncillaQubit(register=None, index=None)" modifiers="class">
285285
Bases: [`Qubit`](#qiskit.circuit.Qubit "qiskit.circuit.quantumregister.Qubit")
286286

287287
A qubit used as ancillary qubit.
@@ -291,7 +291,7 @@ A collection bits of the same type can be encapsulated in a register of the matc
291291

292292
#### Register
293293

294-
<Class id="qiskit.circuit.Register" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/register.py#L26-L233" signature="qiskit.circuit.Register(size=None, name=None, bits=None)" modifiers="class">
294+
<Class id="qiskit.circuit.Register" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/register.py#L26-L233" signature="qiskit.circuit.Register(size=None, name=None, bits=None)" modifiers="class">
295295
Implement a generic register.
296296

297297
<Admonition title="Note" type="note">
@@ -318,7 +318,7 @@ A collection bits of the same type can be encapsulated in a register of the matc
318318

319319
##### index
320320

321-
<Function id="qiskit.circuit.Register.index" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/register.py#L181-L189" signature="index(bit)">
321+
<Function id="qiskit.circuit.Register.index" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/register.py#L181-L189" signature="index(bit)">
322322
Find the index of the provided bit within this register.
323323
</Function>
324324

@@ -339,23 +339,23 @@ Each of the defined bit subtypes has an associated register, which have the same
339339

340340
#### QuantumRegister
341341

342-
<Class id="qiskit.circuit.QuantumRegister" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/quantumregister.py#L50-L57" signature="qiskit.circuit.QuantumRegister(size=None, name=None, bits=None)" modifiers="class">
342+
<Class id="qiskit.circuit.QuantumRegister" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/quantumregister.py#L50-L57" signature="qiskit.circuit.QuantumRegister(size=None, name=None, bits=None)" modifiers="class">
343343
Bases: [`Register`](#qiskit.circuit.Register "qiskit.circuit.register.Register")
344344

345345
Implement a quantum register.
346346
</Class>
347347

348348
#### ClassicalRegister
349349

350-
<Class id="qiskit.circuit.ClassicalRegister" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/classicalregister.py#L50-L57" signature="qiskit.circuit.ClassicalRegister(size=None, name=None, bits=None)" modifiers="class">
350+
<Class id="qiskit.circuit.ClassicalRegister" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/classicalregister.py#L50-L57" signature="qiskit.circuit.ClassicalRegister(size=None, name=None, bits=None)" modifiers="class">
351351
Bases: [`Register`](#qiskit.circuit.Register "qiskit.circuit.register.Register")
352352

353353
Implement a classical register.
354354
</Class>
355355

356356
#### AncillaRegister
357357

358-
<Class id="qiskit.circuit.AncillaRegister" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/quantumregister.py#L68-L75" signature="qiskit.circuit.AncillaRegister(size=None, name=None, bits=None)" modifiers="class">
358+
<Class id="qiskit.circuit.AncillaRegister" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/quantumregister.py#L68-L75" signature="qiskit.circuit.AncillaRegister(size=None, name=None, bits=None)" modifiers="class">
359359
Bases: [`QuantumRegister`](#qiskit.circuit.QuantumRegister "qiskit.circuit.quantumregister.QuantumRegister")
360360

361361
Implement an ancilla register.
@@ -433,19 +433,19 @@ The available modifiers for [`AnnotatedOperation`](qiskit.circuit.AnnotatedOpera
433433

434434
#### InverseModifier
435435

436-
<Class id="qiskit.circuit.InverseModifier" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/annotated_operation.py#L32-L36" signature="qiskit.circuit.InverseModifier" modifiers="class">
436+
<Class id="qiskit.circuit.InverseModifier" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/annotated_operation.py#L33-L37" signature="qiskit.circuit.InverseModifier" modifiers="class">
437437
Inverse modifier: specifies that the operation is inverted.
438438
</Class>
439439

440440
#### ControlModifier
441441

442-
<Class id="qiskit.circuit.ControlModifier" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/annotated_operation.py#L39-L49" signature="qiskit.circuit.ControlModifier(num_ctrl_qubits=0, ctrl_state=None)" modifiers="class">
442+
<Class id="qiskit.circuit.ControlModifier" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/annotated_operation.py#L40-L50" signature="qiskit.circuit.ControlModifier(num_ctrl_qubits=0, ctrl_state=None)" modifiers="class">
443443
Control modifier: specifies that the operation is controlled by `num_ctrl_qubits` and has control state `ctrl_state`.
444444
</Class>
445445

446446
#### PowerModifier
447447

448-
<Class id="qiskit.circuit.PowerModifier" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/annotated_operation.py#L52-L56" signature="qiskit.circuit.PowerModifier(power)" modifiers="class">
448+
<Class id="qiskit.circuit.PowerModifier" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/annotated_operation.py#L53-L57" signature="qiskit.circuit.PowerModifier(power)" modifiers="class">
449449
Power modifier: specifies that the operation is raised to the power `power`.
450450
</Class>
451451

@@ -459,7 +459,7 @@ Measurements in Qiskit are of a single [`Qubit`](#qiskit.circuit.Qubit "qiskit.c
459459

460460
#### Measure
461461

462-
<Class id="qiskit.circuit.Measure" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/measure.py#L21-L44" signature="qiskit.circuit.Measure(label=None)" modifiers="class">
462+
<Class id="qiskit.circuit.Measure" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/measure.py#L21-L44" signature="qiskit.circuit.Measure(label=None)" modifiers="class">
463463
Bases: [`SingletonInstruction`](circuit_singleton#qiskit.circuit.singleton.SingletonInstruction "qiskit.circuit.singleton.SingletonInstruction")
464464

465465
Quantum measurement in the computational basis.
@@ -473,7 +473,7 @@ Related to measurements, there is a [`Reset`](#qiskit.circuit.Reset "qiskit.circ
473473

474474
#### Reset
475475

476-
<Class id="qiskit.circuit.Reset" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/reset.py#L20-L34" signature="qiskit.circuit.Reset(label=None)" modifiers="class">
476+
<Class id="qiskit.circuit.Reset" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/reset.py#L20-L34" signature="qiskit.circuit.Reset(label=None)" modifiers="class">
477477
Bases: [`SingletonInstruction`](circuit_singleton#qiskit.circuit.singleton.SingletonInstruction "qiskit.circuit.singleton.SingletonInstruction")
478478

479479
Incoherently reset a qubit to the $\lvert0\rangle$ state.
@@ -487,7 +487,7 @@ Hardware can be instructed to apply a real-time idle period on a given qubit. A
487487

488488
#### Delay
489489

490-
<Class id="qiskit.circuit.Delay" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/delay.py#L24-L106" signature="qiskit.circuit.Delay(duration, unit='dt')" modifiers="class">
490+
<Class id="qiskit.circuit.Delay" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/delay.py#L24-L106" signature="qiskit.circuit.Delay(duration, unit='dt')" modifiers="class">
491491
Bases: [`Instruction`](qiskit.circuit.Instruction "qiskit.circuit.instruction.Instruction")
492492

493493
Do nothing and just delay/wait/idle for a specified duration.
@@ -513,7 +513,7 @@ it is forbidden for the optimizer to cancel out the two $X$ instructions.
513513

514514
#### Barrier
515515

516-
<Class id="qiskit.circuit.Barrier" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/barrier.py#L25-L48" signature="qiskit.circuit.Barrier(num_qubits, label=None)" modifiers="class">
516+
<Class id="qiskit.circuit.Barrier" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/barrier.py#L25-L48" signature="qiskit.circuit.Barrier(num_qubits, label=None)" modifiers="class">
517517
Bases: [`Instruction`](qiskit.circuit.Instruction "qiskit.circuit.instruction.Instruction")
518518

519519
A directive for circuit compilation to separate pieces of a circuit so that any optimizations or re-writes are constrained to only act between barriers.
@@ -530,7 +530,7 @@ The [`Store`](#qiskit.circuit.Store "qiskit.circuit.Store") instruction is parti
530530

531531
#### Store
532532

533-
<Class id="qiskit.circuit.Store" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/store.py#L55-L95" signature="qiskit.circuit.Store(lvalue, rvalue)" modifiers="class">
533+
<Class id="qiskit.circuit.Store" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/store.py#L55-L95" signature="qiskit.circuit.Store(lvalue, rvalue)" modifiers="class">
534534
Bases: [`Instruction`](qiskit.circuit.Instruction "qiskit.circuit.instruction.Instruction")
535535

536536
A manual storage of some classical value to a classical memory location.
@@ -679,7 +679,7 @@ Subclasses of [`Instruction`](qiskit.circuit.Instruction "qiskit.circuit.Instruc
679679

680680
#### \_define
681681

682-
<Function id="qiskit.circuit.Instruction._define" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/instruction.py#L273-L280" signature="Instruction._define()">
682+
<Function id="qiskit.circuit.Instruction._define" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/instruction.py#L274-L281" signature="Instruction._define()">
683683
Populate the cached `_definition` field of this [`Instruction`](qiskit.circuit.Instruction "qiskit.circuit.Instruction").
684684

685685
Subclasses should implement this method to provide lazy construction of their public [`definition`](qiskit.circuit.Instruction#definition "qiskit.circuit.Instruction.definition") attribute. A subclass can use its [`params`](qiskit.circuit.Instruction#params "qiskit.circuit.Instruction.params") at the time of the call. The method should populate `_definition` with a [`QuantumCircuit`](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit") and not return a value.
@@ -815,7 +815,7 @@ The default instance of [`EquivalenceLibrary`](qiskit.circuit.EquivalenceLibrary
815815

816816
#### random\_circuit
817817

818-
<Function id="qiskit.circuit.random.random_circuit" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/random/utils.py#L24-L288" signature="qiskit.circuit.random.random_circuit(num_qubits, depth, max_operands=4, measure=False, conditional=False, reset=False, seed=None, num_operand_distribution=None)">
818+
<Function id="qiskit.circuit.random.random_circuit" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/random/utils.py#L24-L288" signature="qiskit.circuit.random.random_circuit(num_qubits, depth, max_operands=4, measure=False, conditional=False, reset=False, seed=None, num_operand_distribution=None)">
819819
Generate random circuit of arbitrary size and form.
820820

821821
This function will generate a random circuit by randomly selecting gates from the set of standard gates in `qiskit.circuit.library.standard_gates`. For example:
@@ -866,7 +866,7 @@ Almost all circuit functions and methods will raise a [`CircuitError`](#qiskit.c
866866

867867
### CircuitError
868868

869-
<Class id="qiskit.circuit.CircuitError" github="https://github.com/Qiskit/qiskit/tree/main/qiskit/circuit/exceptions.py#L18-L19" signature="qiskit.circuit.CircuitError(*message)" modifiers="exception">
869+
<Class id="qiskit.circuit.CircuitError" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/circuit/exceptions.py#L18-L19" signature="qiskit.circuit.CircuitError(*message)" modifiers="exception">
870870
Base class for errors raised while processing a circuit.
871871

872872
Set the error message.

0 commit comments

Comments
 (0)