![]() |
THIS CLASS IS DEPRECATED.
Inherits From: Device
cirq.IonDevice(
measurement_duration: 'cirq.DURATION_LIKE',
twoq_gates_duration: 'cirq.DURATION_LIKE',
oneq_gates_duration: 'cirq.DURATION_LIKE',
qubits: Iterable[cirq.LineQubit
]
) -> None
IT WILL BE REMOVED IN cirq v0.16
.
Use cirq_aqt.aqt_device.AQTDevice.
A device with qubits placed on a line.
Qubits have all-to-all connectivity.
Raises | |
---|---|
TypeError
|
If not all the qubits supplied are cirq.LineQubit s.
|
Attributes | |
---|---|
metadata
|
Returns the associated Metadata with the device if applicable. |
Methods
at
at(
position: int
) -> Optional[cirq.LineQubit
]
Returns the qubit at the given position, if there is one, else None.
decompose_circuit
decompose_circuit(
circuit: cirq.Circuit
) -> cirq.Circuit
duration_of
duration_of(
operation
)
neighbors_of
neighbors_of(
qubit: cirq.LineQubit
) -> Iterable[cirq.LineQubit
]
Returns the qubits that the given qubit can interact with.
validate_circuit
validate_circuit(
circuit: cirq.AbstractCircuit
)
Raises an exception if a circuit is not valid.
Args | |
---|---|
circuit
|
The circuit to validate. |
Raises | |
---|---|
ValueError
|
The circuit isn't valid for this device. |
validate_gate
validate_gate(
gate: cirq.Gate
)
validate_moment
validate_moment(
moment: 'cirq.Moment'
) -> None
Raises an exception if a moment is not valid.
Args | |
---|---|
moment
|
The moment to validate. |
Raises | |
---|---|
ValueError
|
The moment isn't valid for this device. |
validate_operation
validate_operation(
operation
)
Raises an exception if an operation is not valid.
Args | |
---|---|
operation
|
The operation to validate. |
Raises | |
---|---|
ValueError
|
The operation isn't valid for this device. |
__eq__
__eq__(
other: _SupportsValueEquality
) -> bool