StarTopologyGateSet
- class StarTopologyGateSet(name, n_qubits, *, spam_qubits=(0,), **properties)
Topology axis: a gate set defined on a star topology.
The central qubit is qubit
0, and every outer qubit is connected to it by a directed native two-qubit interaction. This class supplies only the topology (topologyandlogical_permutation_circuit) and the device’s state preparation and readout. It leaves construction abstract, so it is combined with a construction class such asEntanglerGateSet(e.g.class CROTGateSet(EntanglerGateSet, StarTopologyGateSet)), or subclassed directly by a gate set that supplies its own native-circuit hooks.spam_qubitsnames the qubits whose state preparation and measurement (SPAM) the device performs together. Aresetof any of them resets all of them at once. One readout resolves their populations together, so it measures \(Z\) on each of them and every product of those from the same data. A qubit outside the group gets \(|0\rangle\) by an exchange with a reset qubit. The default,(0,), resets and reads the central qubit alone.- Parameters:
- Raises:
ValidationError – If
spam_qubitsis empty, repeats a qubit or names one outside the register.
Attributes
Return the duration of every native gate that has one. |
|
Return the error of every native gate that has one. |
|
Return the native gates supported by the gate set. |
|
Return where a native entangler sits, and which one. |
|
Return the qubits every native gate reserves while it runs. |
|
Return the |
|
Return the qubits the device resets and reads out together. |
|
Return the qubit set every native entangling gate can be built on. |
Methods
|
Return a native gate's duration, or |
|
Return a native gate's average gate infidelity on its own qubits, or |
|
Rewrite a circuit's resets as the resets the device performs. |
|
Return the native readout a requested Pauli string is realized through by default. |
Return every Pauli string the hardware reads out directly. |
|
|
Generate a random circuit in the native gate set. |
|
Return the qubits a native gate reserves while it runs. |
|
Build the circuit resetting these qubits to \(|0\rangle\). |
|
Return a copy of this gate set with new errors, durations or reserved qubits. |