![]() Register a low-level, custom pulse definition for the given gate.Īppend one or more instructions to the end of the circuit, modifying the circuit in place.Īssign parameters to the n-local circuit.Īssign numeric parameters to values yielding a new circuit.Ĭbit_argument_conversion(clbit_representation)Ĭonverts several classical bit representations (such as indexes, range, etc.) into a list of classical bits.Ĭcx(control_qubit1, control_qubit2, target_qubit)Ĭh(control_qubit, target_qubit) _init_()Īdd_calibration(gate, qubits, schedule) _init_ ( num_qubits = None, rotation_blocks = None, entanglement_blocks = None, entanglement = 'full', reps = 3, skip_unentangled_qubits = False, skip_final_rotation_layer = False, parameter_prefix = 'θ', insert_barriers = False, initial_state = None ) ¶ Initial_state ( Optional) – An InitialState object to prepend to the circuit. Insert_barriers ( bool) – If True, barriers are inserted in between each layer. Parameter_prefix ( str) – The parameterized gates require a parameter to be defined, for which Skip_final_rotation_layer ( bool) – If False, a rotation layer is added at the end of theĪnsatz. If False, the single qubit gates are applied Skip_unentangled_qubits ( bool) – If True, the single qubit gates are only applied to qubits Reps ( int) – Specifies how often a block consisting of a rotation layer and entanglement , ‘circular’ or ‘sca’), a list of integer-pairs specifying the indices of qubitsĮntangled with one another, or a callable returning such a list provided with Can be specified inĮntanglement ( Union], Callable, List]]) – Specifies the entanglement structure. See the Examples section for more detail.Įntanglement_blocks ( Union, type, List, QuantumCircuit, List, None]) – The gates used in the entanglement layer. If a list of gates is provided, all gates are applied to each qubit in the provided If only one gate is provided, the gate same gate is applied to each qubit. Can be specified via the name ofĪ gate (e.g. Rotation_blocks ( Union, type, List, QuantumCircuit, List, None]) – The gates used in the rotation layer. Num_qubits ( Optional) – The number of qubits of the two-local circuit. The entanglement can further be specified using an entangler map, which is a list of index Qubits are swapped every block (therefore alternating). Furthermore the role of control and target The last qubit is shifted by one each block. It consists of circular entanglement where the ‘long’ entanglement connecting the first with 'sca' (shifted-circular-alternating) entanglement is a generalized and modified version 'circular' entanglement is linear entanglement but with an additional entanglement of theįirst and last qubit before the linear part. 'linear' entanglement is qubit \(i\) entangled with qubit \(i 1\),įor all \(i \in \\), where \(n\) is the total number of qubits. 'full' entanglement is each qubit is entangled with all the others. a 1-qubit circuit or 2-qubit circuit).Ī set of default entanglement strategies is provided: RYGate or CXGate) orĪs QuantumCircuit (e.g. Both the rotation and entanglement gates can be specified as ![]() The entanglement layer uses two-qubit gates to entangle the qubits according to a strategy set The rotation layers are single qubit gates applied on all qubits. The two-local circuit is a parameterized circuit consisting of alternating rotation layers andĮntanglement layers. ¶ class TwoLocal ( num_qubits = None, rotation_blocks = None, entanglement_blocks = None, entanglement = 'full', reps = 3, skip_unentangled_qubits = False, skip_final_rotation_layer = False, parameter_prefix = 'θ', insert_barriers = False, initial_state = None ) ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |