def METHOD_NAME(self, circuit, params, amp_squared, **options):
    """Test save_amplitudes instruction"""
    backend = self.backend(**options)
    # Stabilizer test circuit
    circ = circuit.copy()
    # Target statevector
    target = qi.Statevector(circ).data[params]
    if amp_squared:
        target = np.abs(target) ** 2
    # Add save to circuit
    label = "amps"
    if amp_squared:
        circ.save_amplitudes_squared(params, label=label)
    else:
        circ.save_amplitudes(params, label=label)
    # Run
    result = backend.run(transpile(circ, backend, optimization_level=0), shots=1).result()
    self.assertTrue(result.success)
    simdata = result.data(0)
    self.assertIn(label, simdata)
    value = simdata[label]
    self.assertTrue(np.allclose(value, target))