src/quantuminspire/qiskit/backend_qx.py
def __validate_unsupported_measurements(experiment: QasmQobjExperiment) -> None:
        """ When using non-FSP (not full state projection) certain measurements cannot be handled correctly because
            cQASM isn't as flexible as Qiskit in measuring to specific classical bits.
            Therefore some Qiskit constructions are not supported in QI:

            1. When a quantum register is measured to different classical registers
            2. When a classical register is used for the measurement of more than one quantum register

        Args:
            experiment: The experiment with gate operations and header.

        Raises:
            QisKitBackendError: When the circuit contains an invalid non-FSP measurement
        """
        measurements: List[List[int]] = []
        for instruction in experiment.instructions:
            if instruction.name == 'measure':
                for q, m in measurements:
                    if q == instruction.qubits[0] and m != instruction.memory[0]:
                        raise QisKitBackendError('Measurement of qubit {} to different classical registers '
                                                 'is not supported'.format(q))
                    if q != instruction.qubits[0] and m == instruction.memory[0]:
                        raise QisKitBackendError('Measurement of different qubits to the same classical register {0} '
                                                 'is not supported'.format(m))
                measurements.append([instruction.qubits[0], instruction.memory[0]])
 When using non-FSP (not full state projection) certain measurements cannot be handled correctly because
            cQASM isn't as flexible as Qiskit in measuring to specific classical bits.
            Therefore some Qiskit constructions are not supported in QI:

            1. When a quantum register is measured to different classical registers
            2. When a classical register is used for the measurement of more than one quantum register

        Args:
            experiment: The experiment with gate operations and header.

        Raises:
            QisKitBackendError: When the circuit contains an invalid non-FSP measurement
        
When using non-FSP (not full state projection) certain measurements cannot be handled correctly because
cQASM isn't as flexible as Qiskit in measuring to specific classical bits.
Therefore some Qiskit constructions are not supported in QI.

1. When a quantum register is measured to different classical registers
2. When a classical register is used for the measurement of more than one quantum register
When using non - FSP ( not full state projection ) certain measurements cannot be handled correctly because cQASM isn ' t as flexible as Qiskit in measuring to specific classical bits . Therefore some Qiskit constructions are not supported in QI . 1 . When a quantum register is measured to different classical registers 2 . When a classical register is used for the measurement of more than one quantum register
def __validate_unsupported_measurements(experiment: QasmQobjExperiment) -> None:
        measurements: List[List[int]] = []
        for instruction in experiment.instructions:
            if instruction.name == 'measure':
                for q, m in measurements:
                    if q == instruction.qubits[0] and m != instruction.memory[0]:
                        raise QisKitBackendError('Measurement of qubit {} to different classical registers '
                                                 'is not supported'.format(q))
                    if q != instruction.qubits[0] and m == instruction.memory[0]:
                        raise QisKitBackendError('Measurement of different qubits to the same classical register {0} '
                                                 'is not supported'.format(m))
                measurements.append([instruction.qubits[0], instruction.memory[0]])
def __validate_unsupported_measurements ( experiment : QasmQobjExperiment ) -> None : measurements : List [ List [ int ] ] = [ ] for instruction in experiment . instructions : if instruction . name == 'measure' : for q , m in measurements : if q == instruction . qubits [ 0 ] and m != instruction . memory [ 0 ] : raise QisKitBackendError ( 'Measurement of qubit {} to different classical registers ' 'is not supported' . format ( q ) ) if q != instruction . qubits [ 0 ] and m == instruction . memory [ 0 ] : raise QisKitBackendError ( 'Measurement of different qubits to the same classical register {0} ' 'is not supported' . format ( m ) ) measurements . append ( [ instruction . qubits [ 0 ] , instruction . memory [ 0 ] ] )
When using non-FSP (not full state projection) certain measurements cannot be handled correctly because
cQASM isn't as flexible as Qiskit in measuring to specific classical bits.
When using non - FSP ( not full state projection ) certain measurements cannot be handled correctly because cQASM isn ' t as flexible as Qiskit in measuring to specific classical bits .
""" When using non-FSP (not full state projection) certain measurements cannot be handled correctly because
            cQASM isn't as flexible as Qiskit in measuring to specific classical bits.
            Therefore some Qiskit constructions are not supported in QI:

            1. When a quantum register is measured to different classical registers
            2. When a classical register is used for the measurement of more than one quantum register

        Args:
            experiment: The experiment with gate operations and header.

        Raises:
            QisKitBackendError: When the circuit contains an invalid non-FSP measurement
        """
When the circuit contains an invalid non-FSP measurement
When the circuit contains an invalid non - FSP measurement
QisKitBackendError
experiment
QasmQobjExperiment
The experiment with gate operations and header.
The experiment with gate operations and header .