示例#1
0
def ion_device(chain_length: int, use_timedelta=False) -> ci.IonDevice:
    ms = (1000 * cirq.Duration(nanos=1) if not use_timedelta else timedelta(
        microseconds=1))
    return ci.IonDevice(  # type: ignore
        measurement_duration=100 * ms,  # type: ignore
        twoq_gates_duration=200 * ms,  # type: ignore
        oneq_gates_duration=10 * ms,  # type: ignore
        qubits=cirq.LineQubit.range(chain_length))
示例#2
0
def ion_device(chain_length: int, use_timedelta=False) -> ci.IonDevice:
    ms = 1000 * cirq.Duration(nanos=1) if not use_timedelta else timedelta(
        microseconds=1)
    with cirq.testing.assert_deprecated("Use cirq_aqt.aqt_device.AQTDevice",
                                        deadline='v0.16',
                                        count=None):
        return ci.IonDevice(  # type: ignore
            measurement_duration=100 * ms,  # type: ignore
            twoq_gates_duration=200 * ms,  # type: ignore
            oneq_gates_duration=10 * ms,  # type: ignore
            qubits=cirq.LineQubit.range(chain_length),
        )
示例#3
0
def ion_device(chain_length: int) -> ci.IonDevice:
    ms = 1000 * cirq.Duration(nanos=1)
    return ci.IonDevice(measurement_duration=100 * ms,
                        twoq_gates_duration=200 * ms,
                        oneq_gates_duration=10 * ms,
                        qubits=cirq.LineQubit.range(chain_length))