Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.16 fails to build: no member named 'size_' in 'QubitVector<data_t>' #2284

Open
yurivict opened this issue Jan 10, 2025 · 3 comments · May be fixed by #2289
Open

0.16 fails to build: no member named 'size_' in 'QubitVector<data_t>' #2284

yurivict opened this issue Jan 10, 2025 · 3 comments · May be fixed by #2289
Labels
bug Something isn't working

Comments

@yurivict
Copy link
Contributor

Informations

  • Qiskit Aer version: 0.16
  • Python version: 3.11
  • Operating system: FreeBSD 14.2
  • Compiler: clang-18

What is the current behavior?

In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/qiskit_aer/backends/wrappers/bindings.cc:15:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/qiskit_aer/backends/wrappers/aer_controller_binding.hpp:34:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/controllers/aer_controller.hpp:49:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/noise/noise_model.hpp:34:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/noise/quantum_error.hpp:21:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/superoperator/superoperator_state.hpp:26:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/superoperator/superoperator.hpp:19:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/density_matrix/densitymatrix.hpp:19:
In file included from /usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/unitary/unitarymatrix.hpp:19:
/usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/statevector/qubitvector.hpp:733:24: error: no member named 'size_' in 'QubitVector<data_t>'
  733 |   if (data_size_ != qv.size_) {
      |                     ~~ ^
/usr/ports/science/qiskit-aer/work/qiskit-aer-0.16/src/simulators/statevector/qubitvector.hpp:736:52: error: no member named 'num_states_' in 'QubitVector<data_t>'
  736 |                         " != " + std::to_string(qv.num_states_);
      |                                                 ~~ ^
2 errors generated.



### Steps to reproduce the problem
Regular build.


### What is the expected behavior?

n/a


### Suggested solutions
n/a

@yurivict yurivict added the bug Something isn't working label Jan 10, 2025
@yurivict
Copy link
Contributor Author

@gadial

Please either fix or remove the invalid function QubitVector<data_t>::check_dimension,
It uses the field size_ that isn't defined.

@gadial
Copy link
Collaborator

gadial commented Jan 16, 2025

Thank you. It's a very old problem that slipped us; I'm not sure why only now it presents itself but I guess it's due to a strict compiler.

@yurivict
Copy link
Contributor Author

clang-18/19 became more strict.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants