EntanglerGateSet

class EntanglerGateSet(n_qubits, **properties)

Construction axis: one single-qubit basis plus one entangler per placement.

A gate set built from a native single-qubit basis applied to every qubit and a native entangling gate applied to every self.placements placement. Every placement carries the same entangler, or each placement its own.

This class is topology-agnostic (it only reads self.placements), so a concrete gate set combines it with a topology class, e.g. class CROTGateSet(EntanglerGateSet, StarTopologyGateSet). On its own it stays abstract: the topology class supplies placements and spam_qubits.

Attributes

gate_durations

Return the duration of every native gate that has one.

gate_errors

Return the error of every native gate that has one.

gate_types

Return the native gate families.

native_gates

Return the native gates supported by the gate set.

placements

Return where a native entangler sits, and which one.

reserved_qubits_by_gate

Return the qubits every native gate reserves while it runs.

routing_edges

Return the topology entries usable for pairwise routing.

spam_qubits

Return the qubits the device resets and reads out together, or None.

topology

Return the qubit set every native entangling gate can be built on.

Methods

gate_duration(gate)

Return a native gate's duration, or None when it has none.

gate_error(gate)

Return a native gate's average gate infidelity on its own qubits, or None when it has none.

lower_resets(circuit)

Rewrite a circuit's resets as the resets the device performs.

pauli_readout_native(pauli_readout[, ...])

Return the native readout a requested Pauli string is realized through by default.

pauli_readouts_native()

Return every Pauli string the hardware reads out directly.

random_circuit(n_gates[, seed])

Generate a random circuit drawn from the native gate set.

reserved_qubits(gate)

Return the qubits a native gate reserves while it runs.

reset_circuit(qubits)

Build the circuit resetting these qubits to \(|0\rangle\).

with_properties(*[, ...])

Return a copy of this gate set with new errors, durations or reserved qubits.