pub trait OperateSingleQubit: Operate + InvolveQubits + Substitute + Clone + PartialEq {
    // Required method
    fn qubit(&self) -> &usize;
}
Expand description

Trait for operations acting on exactly one qubit.

§Example

use roqoqo::operations::{OperateSingleQubit, PauliX};
let paulix = PauliX::new(0);
assert_eq!(paulix.qubit(), &0_usize);

Required Methods§

source

fn qubit(&self) -> &usize

Returns qubit the Operation acts on.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl OperateSingleQubit for SingleQubitGateOperation

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SingleQubitOperation

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for CZQubitResonator

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for JaynesCummings

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for LongitudinalCoupling

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for QuantumRabi

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SingleExcitationLoad

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SingleExcitationStore

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for GPi2

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for GPi

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for Hadamard

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for Identity

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for InvSqrtPauliX

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for MeasureQubit

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PauliX

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PauliY

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PauliZ

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PhaseShiftState0

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PhaseShiftState1

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaActiveReset

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaDamping

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaDephasing

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaDepolarising

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaGeneralNoise

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for PragmaRandomNoise

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for RotateAroundSphericalAxis

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for RotateX

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for RotateXY

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for RotateY

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for RotateZ

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SGate

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SingleQubitGate

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for SqrtPauliX

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.

source§

impl OperateSingleQubit for TGate

Implements OperateSingleQubit trait for this Operation acting on exactly one qubit.